config/shell: More compatibility

This commit is contained in:
xerus2000 2020-10-13 11:16:07 +02:00
parent 843cdc8ed1
commit 87aaf7a2b5
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,7 @@ gitremote() {
git:*) echo "$1" ;;
*) test "$3" = "cau" && 3="CAU-Kiel-Tech-Inf"
test "$3" = "btl" && 3="betweenthelinesev"
echo "git@git${1:-hub}.com:${3:-xerus2000}/${2:-$(basename $PWD)}.git" ;;
echo "git@${1:-github}.com:${3:-xerus2000}/${2:-$(basename $PWD)}.git" ;;
esac
}
@ -129,7 +129,7 @@ gitclone() {
gitfork() {
builtin cd "$projects_dir/_forks"
gitclone hub "$1" "" "$3" --recurse-submodules
test "$2" && git remote add upstream "$(gitremote hub "$1" "$2")"
test "$2" && git remote add upstream "$(gitremote github "$1" "$2")"
git remote -v
}

View File

@ -42,6 +42,7 @@ plugins=(
fast-syntax-highlighting
zsh-autosuggestions
zsh-vim-mode
history-substring-search
)
_comp_options+=(globdots) # Show files starting with dot in autocomplete