Compare commits

...

3 commits

Author SHA1 Message Date
7dcd6f958e
( ͡° ͜ʖ ͡°) 2023-05-31 16:59:46 -04:00
8bd52e2017
Advanced git-checkout 2023-05-25 21:18:04 -04:00
de5a133313
Include quick linting git commit 2023-05-07 09:42:44 -04:00
2 changed files with 14 additions and 3 deletions

View file

@ -1,6 +1,6 @@
alias ..="cd .." alias ....="cd ../../.."
alias ...="cd ../.." alias ...="cd ../.."
alias ...="cd ../../.." alias ..="cd .."
alias a="ls -l --human-readable --all --color=auto" alias a="ls -l --human-readable --all --color=auto"
alias agc="ag-count" alias agc="ag-count"
alias agh="ag --hidden" alias agh="ag --hidden"
@ -22,8 +22,9 @@ alias gap="git add --patch"
alias gb="git branch" alias gb="git branch"
alias gc="git commit" alias gc="git commit"
alias gca="git commit --amend" alias gca="git commit --amend"
alias gcl="git commit -m 'Linting'"
alias gcn="git commit --allow-empty --message 'noop'" alias gcn="git commit --allow-empty --message 'noop'"
alias gco="git checkout" alias gco="advanced-git-checkout"
alias gcp="git cherry-pick" alias gcp="git cherry-pick"
alias gcs="git commit -m '¯\_(ツ)_/¯'" alias gcs="git commit -m '¯\_(ツ)_/¯'"
alias gct="git commit -m '( ͡° ͜ʖ ͡°)'" alias gct="git commit -m '( ͡° ͜ʖ ͡°)'"

View file

@ -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 { function ag-count {
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
echo Usage: ag-count SEARCHTERM echo Usage: ag-count SEARCHTERM