Indentation and ssh bits in zshrc

main
Dan Buch 7 years ago
parent 01a80d5c8a
commit 7f28373dbf
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

99
zshrc

@ -28,33 +28,33 @@ COMPLETION_WAITING_DOTS="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true" # DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=( plugins=(
autoenv autoenv
aws aws
bundler bundler
cabal cabal
command-not-found command-not-found
cp cp
docker docker
gem gem
git git
git-hubflow git-hubflow
golang golang
heroku heroku
hk hk
knife knife
osx osx
pip pip
postgres postgres
python python
rails rails
rake-fast rake-fast
rbenv rbenv
redis-cli redis-cli
rsync rsync
ruby ruby
tmux tmux
vagrant vagrant
vi-mode vi-mode
) )
fpath=(/usr/local/share/zsh/site-functions $fpath) fpath=(/usr/local/share/zsh/site-functions $fpath)
@ -74,19 +74,19 @@ unsetopt correct_all
bindkey '^R' history-incremental-search-backward bindkey '^R' history-incremental-search-backward
path=( path=(
$HOME/bin $HOME/bin
$HOME/go/bin $HOME/go/bin
$HOME/.rbenv/bin $HOME/.rbenv/bin
$HOME/.rbenv/shims $HOME/.rbenv/shims
$HOME/.phpenv/bin $HOME/.phpenv/bin
/usr/local/sbin /usr/local/sbin
/usr/local/bin /usr/local/bin
/usr/sbin /usr/sbin
/usr/bin /usr/bin
/sbin /sbin
/bin /bin
/usr/games /usr/games
/usr/local/games /usr/local/games
) )
if which pyenv >/dev/null; then if which pyenv >/dev/null; then
@ -109,17 +109,24 @@ done
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
function dump-ssh-agent() { function dump-ssh-agent() {
env | awk '/SSH/ { env | awk '/SSH/ {
sub(/=/, "=\"", $1) sub(/=/, "=\"", $1)
sub(/$/, "\"", $1) sub(/$/, "\"", $1)
print "export " $1 print "export " $1
}' | tee ~/.ssh/agent.out }' | tee ~/.ssh/agent.out
} }
function load-ssh-agent() { function load-ssh-agent() {
source ~/.ssh/agent.out source ~/.ssh/agent.out
} }
function start-ssh-agent() {
ssh-agent >~/.ssh/agent.out
}
load-ssh-agent &>/dev/null
[[ -e ~/.zshenv ]] && source ~/.zshenv [[ -e ~/.zshenv ]] && source ~/.zshenv
[ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh [ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh

Loading…
Cancel
Save