From 56342141dab2e7f6cd509560e39dbc2169bb54dc Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 13 Apr 2014 22:19:47 -0700 Subject: [PATCH] add git reset-origin and go2dotfiles. --- dotfiles/gitconfig | 1 + dotfiles/lib/shellrc/aliases.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index 2ff1dbab..95684934 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -17,6 +17,7 @@ poh = push origin HEAD du = "!d() { git ls-files $1 --error-unmatch 2>/dev/null 1>/dev/null && git diff $1 || `git config --get core.pager` $1; }; d" amend = commit -a --amend -C HEAD + reset-origin = "r() {git reset --hard origin/$(git symbolic-ref HEAD); git suir}" [core] # Use custom `.gitignore` and `.gitattributes` diff --git a/dotfiles/lib/shellrc/aliases.sh b/dotfiles/lib/shellrc/aliases.sh index fe065627..f5c0c21b 100644 --- a/dotfiles/lib/shellrc/aliases.sh +++ b/dotfiles/lib/shellrc/aliases.sh @@ -3,6 +3,7 @@ alias tmux="tmux -2" alias remote_os_copy='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 go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)' # enables the sudoing of aliases. alias sudo='sudo '