commit 41a00abe862894dc83856c16ad89d1abdb5b1fe8
parent 7ef15f936adffdd036a66dac050ea403b1c4eef5
Author: Chris Bracken <chris@bracken.jp>
Date: Thu, 3 Mar 2016 11:26:39 -0800
Move environment vars to bash/zsh rc files
Diffstat:
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/.bashrc b/.bashrc
@@ -5,6 +5,11 @@
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
+# environment vars
+export EDITOR=/usr/bin/vim
+export GNUPGHOME="$HOME/.gnupg"
+export TERMINAL=urxvt
+
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
diff --git a/.profile b/.profile
@@ -8,10 +8,6 @@
# for ssh logins, install and configure the libpam-umask package.
umask 022
-export EDITOR=/usr/bin/vim
-export GNUPGHOME="$HOME/.gnupg"
-export TERMINAL=urxvt
-
# gnome keyring
if [[ $(which gnome-keyring-daemon) == 0 ]]; then
export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
diff --git a/.zshrc b/.zshrc
@@ -1,5 +1,10 @@
# .zshrc
+# environment vars
+export EDITOR=/usr/bin/vim
+export GNUPGHOME="$HOME/.gnupg"
+export TERMINAL=urxvt
+
# history
HISTFILE=~/.histfile
HISTSIZE=1000