zsh: bug fix in gloned()
This commit is contained in:
parent
3db1a646a7
commit
00f7e63d74
1 changed files with 1 additions and 1 deletions
2
.zshrc
2
.zshrc
|
@ -425,7 +425,7 @@
|
|||
|
||||
# Git cLONE cD
|
||||
gloned() {
|
||||
git clone "$1"
|
||||
git clone "$1" || return $?
|
||||
if ! cd "$(echo "$1" | sed 's/\.git//g' | rev | cut -d '/' -f 1 | rev)";then
|
||||
echo 'Error: Could not `cd` into the repo'
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue