forked from colonelpanic/dotfiles
Add update_dotfiles.
This commit is contained in:
parent
bf4f9e6a2c
commit
dd57eafd44
@ -3,7 +3,6 @@ alias xemacs="\emacs --daemon > /dev/null 2&> /dev/null; emacsclient -c &"
|
|||||||
alias tmux="tmux -2"
|
alias tmux="tmux -2"
|
||||||
alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
|
alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
|
||||||
alias timestamp='date +%s'
|
alias timestamp='date +%s'
|
||||||
alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
|
|
||||||
alias fn='find . -name '
|
alias fn='find . -name '
|
||||||
alias prj='cd ~/Projects'
|
alias prj='cd ~/Projects'
|
||||||
alias reload_tmux='tmux source-file ~/.tmux.conf'
|
alias reload_tmux='tmux source-file ~/.tmux.conf'
|
||||||
|
@ -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() {
|
function current_shell() {
|
||||||
readlink -f $(which "$(ps -p $$ | tail -1 | awk '{print $NF}' | sed 's/\-//')")
|
readlink -f $(which "$(ps -p $$ | tail -1 | awk '{print $NF}' | sed 's/\-//')")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user