Compare commits
3 commits
ec677a8d74
...
7dcd6f958e
Author | SHA1 | Date | |
---|---|---|---|
7dcd6f958e | |||
8bd52e2017 | |||
de5a133313 |
2 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
alias ..="cd .."
|
||||
alias ....="cd ../../.."
|
||||
alias ...="cd ../.."
|
||||
alias ...="cd ../../.."
|
||||
alias ..="cd .."
|
||||
alias a="ls -l --human-readable --all --color=auto"
|
||||
alias agc="ag-count"
|
||||
alias agh="ag --hidden"
|
||||
|
@ -22,8 +22,9 @@ alias gap="git add --patch"
|
|||
alias gb="git branch"
|
||||
alias gc="git commit"
|
||||
alias gca="git commit --amend"
|
||||
alias gcl="git commit -m 'Linting'"
|
||||
alias gcn="git commit --allow-empty --message 'noop'"
|
||||
alias gco="git checkout"
|
||||
alias gco="advanced-git-checkout"
|
||||
alias gcp="git cherry-pick"
|
||||
alias gcs="git commit -m '¯\_(ツ)_/¯'"
|
||||
alias gct="git commit -m '( ͡° ͜ʖ ͡°)'"
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
function advanced-git-checkout {
|
||||
if [ $# -eq 0 ]; then
|
||||
git branch \
|
||||
| fzf \
|
||||
| xargs -I {} git checkout {}
|
||||
else
|
||||
git checkout $@
|
||||
fi
|
||||
}
|
||||
|
||||
function ag-count {
|
||||
if [ $# -lt 1 ]; then
|
||||
echo Usage: ag-count SEARCHTERM
|
||||
|
|
Loading…
Add table
Reference in a new issue