From: Andre Ramnitz Date: Fri, 29 Dec 2023 03:03:34 +0000 (+0100) Subject: bash/fish: some comfy git aliases X-Git-Tag: v0.2~260 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=0d56d393099c2b740d7f34455a0e8c6a1084a73f;p=dotfiles.git bash/fish: some comfy git aliases --- diff --git a/config/fish/functions/gco.fish b/config/fish/functions/gco.fish new file mode 100644 index 00000000..a484368e --- /dev/null +++ b/config/fish/functions/gco.fish @@ -0,0 +1,3 @@ +function gco --wraps='git checkout' --description 'alias gco=git checkout' + git checkout $argv; +end diff --git a/config/fish/functions/gg.fish b/config/fish/functions/gg.fish new file mode 100644 index 00000000..2422554f --- /dev/null +++ b/config/fish/functions/gg.fish @@ -0,0 +1,3 @@ +function gg --wraps='cd /home/andy/dotfiles' --description 'alias gg=cd /home/andy/dotfiles' + cd /home/andy/dotfiles $argv; +end diff --git a/home/.bashrc b/home/.bashrc index 682fc798..6e8cef48 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -19,6 +19,8 @@ export VDPAU_DRIVER="radeonsi" export XZ_OPT="--threads=16" alias grep='grep -i' +alias gg="cd $(git rev-parse --show-toplevel)" +alias gco="git checkout" alias gcp="git cherry-pick" alias glo="git log --oneline" alias gst="git status"