Various updates

This commit is contained in:
Andrew Tomaka 2013-09-18 21:08:28 -04:00
parent 12f726a4fa
commit 324fe1adba
4 changed files with 18 additions and 1 deletions

View file

@ -10,9 +10,13 @@ alias be="bundle exec"
alias beg="bundle exec guard" alias beg="bundle exec guard"
alias ber="bundle exec rake" alias ber="bundle exec rake"
alias c="clear" alias c="clear"
alias f="map-sshfs"
alias fn="map-sshfs netprint /data/www/ netprint && cd ~/Mounts/netprint"
alias fun="cd && fusermount -u ~/Mounts/netprint"
alias g="g" # overwrite g alias in git plugin so function will work alias g="g" # overwrite g alias in git plugin so function will work
alias ga="git add" alias ga="git add"
alias gaa="git add ." alias gaa="git add ."
alias gc="git commit"
alias gcf="git commit --file" alias gcf="git commit --file"
alias gcm="git commit --message" alias gcm="git commit --message"
alias gco="git checkout" alias gco="git checkout"
@ -31,6 +35,7 @@ alias gw="git diff --check"
alias Grep='grep' alias Grep='grep'
alias l="ls" alias l="ls"
alias ll="ls -lv --human-readable --color=auto" alias ll="ls -lv --human-readable --color=auto"
alias m="more"
alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair" alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair"
alias mw="tmux attach-session -t work || tmux new-session -s work" alias mw="tmux attach-session -t work || tmux new-session -s work"
alias rd="popd" alias rd="popd"

View file

@ -17,5 +17,9 @@ function port-forward {
} }
function map-sshfs { function map-sshfs {
if [ $# -eq 0 ]; then
echo Usage: map-sshfs HOST DIRECTORY MOUNT
else
sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3 sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3
fi
} }

4
.vimrc
View file

@ -81,16 +81,20 @@ map <Down> <Nop>
let mapleader = "," let mapleader = ","
map <Leader>bi :BundleInstall<cr> map <Leader>bi :BundleInstall<cr>
map <Leader>bu :BundleInstall!<cr>
map <Leader>c "+ map <Leader>c "+
map <Leader>fw :FixWhitespace<cr> map <Leader>fw :FixWhitespace<cr>
map <Leader>i mmgg=G`m<cr> map <Leader>i mmgg=G`m<cr>
map <Leader>lf :call LargeFileToggle()<cr> map <Leader>lf :call LargeFileToggle()<cr>
map <Leader>p "+p map <Leader>p "+p
map <Leader>pm :set paste!<cr>
map <Leader>s :e ~/Source/<cr> map <Leader>s :e ~/Source/<cr>
map <Leader>sa :call RenameFile()<cr> map <Leader>sa :call RenameFile()<cr>
map <Leader>se :e ~/.vimrc<cr> map <Leader>se :e ~/.vimrc<cr>
map <Leader>sz :so ~/.vimrc<cr> map <Leader>sz :so ~/.vimrc<cr>
map <Leader>t :Tabularize / map <Leader>t :Tabularize /
map <Leader>t> :Tabularize /=><cr>
map <Leader>te :Tabularize /=<cr>
map <Leader>ts :sp ~/tool-sharpener.txt<cr> map <Leader>ts :sp ~/tool-sharpener.txt<cr>
" Set style " Set style

4
.zshrc
View file

@ -14,6 +14,10 @@ else
export PATH="$HOME/.rvenv/bin:$PATH" export PATH="$HOME/.rvenv/bin:$PATH"
fi fi
if test -d /soft/linux/pkg/bin ; then
export PATH=/soft/linux/pkg/bin:${PATH};
fi
# List directory when changing (github/r00k) # List directory when changing (github/r00k)
chpwd() { chpwd() {
ls -lvh --color=auto ls -lvh --color=auto