zsh: almost all functions are scripts now (part 2)
This commit is contained in:
parent
75c3986785
commit
ec0cee28d9
14 changed files with 287 additions and 0 deletions
12
.config/shell/bin/gloned
Executable file
12
.config/shell/bin/gloned
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Git cLONE cD
|
||||
|
||||
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
|
||||
fi
|
||||
echo
|
||||
# ls --color=auto
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue