mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Remove and swap out some bash specific logic
This commit is contained in:
10
zsh/git.zsh
10
zsh/git.zsh
@@ -20,12 +20,6 @@ alias gix="gitx"
|
|||||||
alias gx="gitx"
|
alias gx="gitx"
|
||||||
|
|
||||||
# Git Completion
|
# Git Completion
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -d "/usr/local/share/zsh/site-functions" ]; then
|
||||||
if [ -f "/usr/local/etc/bash_completion.d/git-completion.bash" ]; then
|
fpath=("/usr/local/share/zsh/site-functions" "${fpath[@]}")
|
||||||
source "/usr/local/etc/bash_completion.d/git-completion.bash"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only needed for Bash. Zsh is much smarter with it's auto-completion ^_^
|
|
||||||
complete -o default -o nospace -F _git g
|
|
||||||
complete -o default -o nospace -F _git gi
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ alias mk="minikube"
|
|||||||
|
|
||||||
export KUBECONFIG="$HOME/.kube/config:.kube/config"
|
export KUBECONFIG="$HOME/.kube/config:.kube/config"
|
||||||
|
|
||||||
if command -v kubectl > /dev/null; then
|
if [ $commands[kubectl] ]; then
|
||||||
eval "$(kubectl completion zsh)"
|
eval "$(kubectl completion zsh)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
alias le="less"
|
alias le="less"
|
||||||
|
|
||||||
# Enable syntax highlighting via source-highlight
|
# Enable syntax highlighting via source-highlight
|
||||||
if command -v src-hilite-lesspipe.sh > /dev/null; then
|
if [ $commands[src-hilite-lesspipe.sh] ]; then
|
||||||
export LESSOPEN="| src-hilite-lesspipe.sh %s"
|
export LESSOPEN="| src-hilite-lesspipe.sh %s"
|
||||||
export LESS=" -R "
|
export LESS=" -R "
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -32,9 +32,4 @@ install_node_global_packages () {
|
|||||||
# Load nvm if it's available
|
# Load nvm if it's available
|
||||||
if [ -f "$HOME/.nvm/nvm.sh" ]; then
|
if [ -f "$HOME/.nvm/nvm.sh" ]; then
|
||||||
source "$HOME/.nvm/nvm.sh"
|
source "$HOME/.nvm/nvm.sh"
|
||||||
|
|
||||||
# And it's shell completion
|
|
||||||
if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.nvm/bash_completion" ]; then
|
|
||||||
source "$HOME/.nvm/bash_completion"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user