Skip to content

Instantly share code, notes, and snippets.

@isaquealves
Created March 14, 2020 14:56
Show Gist options
  • Save isaquealves/1b3b382280db629058b2bab332c3920e to your computer and use it in GitHub Desktop.
Save isaquealves/1b3b382280db629058b2bab332c3920e to your computer and use it in GitHub Desktop.
Mercurial aliases
alias hgwork="hg pull && hg update $1"
alias workon="hg update $1"
alias hgm="hgs -m"
alias hcd="hg update $1"
alias hgb="hg branch | \
tr -d '\n' | \
xclip -selection clipboard && \
echo \"$(xclip -selection clipboard -o)\" "
alias hgbs="hg branches | \
column -t | \
sort"
alias hgbsc="hg branches -c | \
column -t | \
sort"
alias hglc="hg log -l 1 | \
grep -1 changeset | \
xclip -selection clipboard"
alias hgl="hg log -b -g $1"
alias hglm="hg lint `hg status -a | cut -d" " -f 2`"
alias hgsh="NO_VERIFY=1 hg shelve"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment