diff --git a/.gitignore b/.gitignore index 494f98c..8a039c7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ installed-prefs *.swp *~ *.bak +local_dotfiles diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 02acf37..8107dee 100644 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -40,5 +40,3 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then fi if [[ -e $HOME/.aliases ]] ; then source $HOME/.aliases ; fi - -export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting diff --git a/dotfiles/profile b/dotfiles/profile index f76d4d3..c562990 100644 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -13,3 +13,5 @@ if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then export GPG_TTY=`tty` fi # End GPG + +test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local" diff --git a/dotfiles/xsessionrc b/dotfiles/xsessionrc index 4bf8017..b5e2165 100644 --- a/dotfiles/xsessionrc +++ b/dotfiles/xsessionrc @@ -1,2 +1,3 @@ setxkbmap -option ctrl:nocaps +test -f "$HOME/.env" && "$HOME/.env" test -f "$HOME/.profile" && . "$HOME/.profile" diff --git a/dotfiles/zshrc b/dotfiles/zshrc index ae160f9..faaefb4 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -56,5 +56,3 @@ fi # Load any local settings if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi - -export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting diff --git a/install.sh b/install.sh index bafbb6b..736b9da 100755 --- a/install.sh +++ b/install.sh @@ -84,6 +84,12 @@ function postinstall { # Install other useful tools install_git https://github.com/trustedsec/ptf.git ${HOME}/bin/ptframework && \ add_bin_symlink ${HOME}/bin/ptframework/ptf + # Refresh all gpg keys + if test -x "`which gpg2`" ; then + gpg2 --refresh-keys + else + gpg --refresh-keys + fi } function ssh_key_already_installed { @@ -276,6 +282,8 @@ install_dotfile_dir "${BASEDIR}/dotfiles" test -d "${BASEDIR}/private_dotfiles" && \ test -d "${BASEDIR}/.git/git-crypt" && \ install_dotfile_dir "${BASEDIR}/private_dotfiles" +test -d "${BASEDIR}/local_dotfiles" && \ + install_dotfile_dir "${BASEDIR}/local_dotfiles" install_basic_dir "${BASEDIR}/bin" "${HOME}/bin" (( $MINIMAL )) || postinstall (( $INSTALL_KEYS )) && install_keys