config/shell: More compatibility
This commit is contained in:
parent
843cdc8ed1
commit
87aaf7a2b5
|
@ -115,7 +115,7 @@ gitremote() {
|
||||||
git:*) echo "$1" ;;
|
git:*) echo "$1" ;;
|
||||||
*) test "$3" = "cau" && 3="CAU-Kiel-Tech-Inf"
|
*) test "$3" = "cau" && 3="CAU-Kiel-Tech-Inf"
|
||||||
test "$3" = "btl" && 3="betweenthelinesev"
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ gitclone() {
|
||||||
gitfork() {
|
gitfork() {
|
||||||
builtin cd "$projects_dir/_forks"
|
builtin cd "$projects_dir/_forks"
|
||||||
gitclone hub "$1" "" "$3" --recurse-submodules
|
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
|
git remote -v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ plugins=(
|
||||||
fast-syntax-highlighting
|
fast-syntax-highlighting
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
zsh-vim-mode
|
zsh-vim-mode
|
||||||
|
history-substring-search
|
||||||
)
|
)
|
||||||
|
|
||||||
_comp_options+=(globdots) # Show files starting with dot in autocomplete
|
_comp_options+=(globdots) # Show files starting with dot in autocomplete
|
||||||
|
|
Loading…
Reference in New Issue