From 4bbafa67bbc92736d9e3c80a35f0677f32460818 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Wed, 27 Jan 2021 11:29:00 +0100 Subject: [PATCH] config/shell: mini fixes --- .config/git/config | 2 +- .config/shell/git | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/git/config b/.config/git/config index 40ed11b..7657233 100644 --- a/.config/git/config +++ b/.config/git/config @@ -146,7 +146,7 @@ cgit = !yadm cme "config/git:" -- $XDG_CONFIG_HOME/git $CONFIG_SHELLS/git $HOME/.local/bin/git-* cvim = !yadm cme "config/nvim:" -- $XDG_CONFIG_HOME/nvim/init* cshell = !yadm cme "config/shell:" -- $CONFIG_SHELLS - cbin = !yadm cme "bin:" -- $HOME/.local/bin/scripts/ + cbin = !yadm cme "bin:" -- $HOME/.local/bin # data journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal diff --git a/.config/shell/git b/.config/shell/git index 5829dad..6c5f4c8 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -82,7 +82,7 @@ gitclone() { remote=$(gitremote "$@") echo $remote git clone $remote ${@:4} || return $? - cd "$(test $4 && echo $4 || basename ${remote/.git})" + cd "$(test $4 && echo $4 || basename ${remote%.git})" } gitfork() {