Mise à jour de 'zsh/plugins/project.plugin.zsh'
This commit is contained in:
parent
4c1059128a
commit
2b18bb3c49
|
@ -5,6 +5,16 @@ _project() {
|
||||||
compadd $(find $_PROJECT_DIR -maxdepth 1 -type l | sed 's#^\(.*\)/\([a-zA-Z0-9\._ -]*\)$#\2#g')
|
compadd $(find $_PROJECT_DIR -maxdepth 1 -type l | sed 's#^\(.*\)/\([a-zA-Z0-9\._ -]*\)$#\2#g')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gcll () {
|
||||||
|
REPO="$1"
|
||||||
|
DEST="$2"
|
||||||
|
if [ -z "$DEST" ]
|
||||||
|
then
|
||||||
|
DEST="$(basename "$REPO" | sed 's/\.git$//')"
|
||||||
|
fi
|
||||||
|
git clone "$REPO" && cd "$DEST"
|
||||||
|
}
|
||||||
|
|
||||||
repo() {
|
repo() {
|
||||||
if [ "$1" = "-n" -a -n "$2" ]; then
|
if [ "$1" = "-n" -a -n "$2" ]; then
|
||||||
TO="$3"
|
TO="$3"
|
||||||
|
|
Loading…
Reference in a new issue