From 6162aa3a7b6d65c1ca938b8c1a306c143a8a560f Mon Sep 17 00:00:00 2001 From: Chris Bachhuber Date: Fri, 23 Aug 2024 17:56:42 +0200 Subject: [PATCH] gcamp and ff aliases --- config/zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/zshrc b/config/zshrc index 06a7f44..24502fb 100644 --- a/config/zshrc +++ b/config/zshrc @@ -152,5 +152,18 @@ pasteinit() { pastefinish() { zle -N self-insert $OLD_SELF_INSERT } + +# aliases +function gcamp(){ + if ! [ -z $1 ]; then + git commit -am $1 && git push + fi +} +function ff(){ + if ! [ -z $1 ]; then + firefox $1 >/dev/null 2>&1 & disown + fi +} + zstyle :bracketed-paste-magic paste-init pasteinit zstyle :bracketed-paste-magic paste-finish pastefinish