Add update_dotfiles.

This commit is contained in:
Ivan Malison 2014-08-21 13:02:05 -07:00
parent bf4f9e6a2c
commit dd57eafd44
2 changed files with 11 additions and 1 deletions

View File

@ -3,7 +3,6 @@ alias xemacs="\emacs --daemon > /dev/null 2&> /dev/null; emacsclient -c &"
alias tmux="tmux -2"
alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
alias timestamp='date +%s'
alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
alias fn='find . -name '
alias prj='cd ~/Projects'
alias reload_tmux='tmux source-file ~/.tmux.conf'

View File

@ -1,3 +1,14 @@
function go2dotfiles() {
cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)
}
function update_dotfiles() {
local old_pwd=$(pwd)
go2dotfiles
git ffo
cd $old_pwd
}
function current_shell() {
readlink -f $(which "$(ps -p $$ | tail -1 | awk '{print $NF}' | sed 's/\-//')")
}