mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Fix history handler and git plugin
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
shopt -s histappend # append to bash_history if Terminal.app quits
|
||||
|
||||
## Command history configuration
|
||||
if [ -z "$HISTFILE" ]; then
|
||||
HISTFILE=$HOME/.bash_history
|
||||
|
@ -75,7 +75,7 @@ alias gcd='git checkout develop'
|
||||
alias gcmsg='git commit -m'
|
||||
alias gco='git checkout'
|
||||
alias gcount='git shortlog -sn'
|
||||
#compdef _git gcount
|
||||
#compdef _git gcount complete -F _git gcount
|
||||
alias gcp='git cherry-pick'
|
||||
alias gcpa='git cherry-pick --abort'
|
||||
alias gcpc='git cherry-pick --continue'
|
||||
@ -87,14 +87,18 @@ alias gdct='git describe --tags `git rev-list --tags --max-count=1`'
|
||||
alias gdt='git diff-tree --no-commit-id --name-only -r'
|
||||
alias gdw='git diff --word-diff'
|
||||
|
||||
gdv() { git diff -w "$@" | view - }
|
||||
gdv() {
|
||||
git diff -w "$@" | view -
|
||||
}
|
||||
#compdef _git gdv=git-diff
|
||||
|
||||
alias gf='git fetch'
|
||||
alias gfa='git fetch --all --prune'
|
||||
alias gfo='git fetch origin'
|
||||
|
||||
function gfg() { git ls-files | grep $@ }
|
||||
gfg() {
|
||||
git ls-files | grep "$@"
|
||||
}
|
||||
#compdef _grep gfg
|
||||
|
||||
alias gg='git gui citool'
|
||||
|
Reference in New Issue
Block a user