From 948993e6a2827c334f4e343c1252a857c9ced61c Mon Sep 17 00:00:00 2001 From: Luddifee Date: Fri, 30 Apr 2021 15:59:01 +0200 Subject: [PATCH] update .zshrc --- .zshrc | 22 ++++++++++------------ 3 | 0 2 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 3 diff --git a/.zshrc b/.zshrc index 99ceae7..5e58012 100644 --- a/.zshrc +++ b/.zshrc @@ -45,8 +45,16 @@ alias pacman="sudo pacman --color auto" alias emacs="emacs -nw" -function gcm() { git add .; git commit -m "$1"; } -alias gcm=gcm +function gc() { + git add . + tmp=$(git config user.signingkey) + if [ {$tmp} > 2 ] ; then + git commit -S -m "$1" + else + git commit -m "$1" + fi +} +alias gc=gc alias gp="git push" alias gl="git pull" alias gcl="git clone" @@ -57,13 +65,3 @@ alias weather=weather bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word -# Use powerline -#USE_POWERLINE="true" -# Source manjaro-zsh-configuration -#if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then -# source /usr/share/zsh/manjaro-zsh-config -#fi -# Use manjaro zsh prompt -#if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then -# source /usr/share/zsh/manjaro-zsh-prompt -#fi diff --git a/3 b/3 new file mode 100644 index 0000000..e69de29