Merge branch 'add_toggles' of ajohnson/zsh into master

pull/6/head
Aaron Johnson 7 years ago committed by Gitea
commit db11c308b7

1
.gitignore vendored

@ -1,2 +1,3 @@
/zsh.conf /zsh.conf
/custom

@ -1,9 +1,11 @@
# ZSH Configuration # ZSH Configuration
BSD_MODE=false #Some options must be specified differently in BSD BSD_MODE=false #Some options must be specified differently in BSD
SYNTAX_HIGHLIGHT=true #On-the-fly syntax highlighting of commands that you type SYNTAX_HIGHLIGHT=true #On-the-fly syntax highlighting of commands that you type
AUTO_CD=true #When true, if only a directory path is entered, you will cd to the directory
# Prompt Style # Prompt Style
PROMPT_STYLE=bsd #Valid options: bsd, bsd2, ar5 PROMPT_STYLE=bsd #Valid options: bsd, bsd2, ar5
COMPLETION_STYLE=bash #ZSH "automenu" option toggle - Valid options: bash, zsh (defaults to bash)
# Example prompts: # Example prompts:
# bsd: user@host:~/storage/git[git-branch]% # bsd: user@host:~/storage/git[git-branch]%

@ -2,10 +2,14 @@ autoload -U compinit promptinit
autoload -U colors && colors autoload -U colors && colors
compinit -d ${HOME}/.cache/.zcompdump compinit -d ${HOME}/.cache/.zcompdump
promptinit promptinit
setopt autocd if [ $AUTO_CD = true ]
then
setopt autocd
fi
unsetopt beep unsetopt beep
setopt HIST_IGNORE_SPACE setopt HIST_IGNORE_SPACE
if [ $COMPLETION_STYLE = bash ]
## BASH-style completion; comment out for full ZSH completion. then
setopt noautomenu setopt noautomenu
fi

@ -7,7 +7,6 @@ else
source $HOME/.zsh/interactive source $HOME/.zsh/interactive
source $HOME/.zsh/exports source $HOME/.zsh/exports
source $HOME/.zsh/bindkeys source $HOME/.zsh/bindkeys
source $HOME/.zsh/completion
source $HOME/.zsh/setopt source $HOME/.zsh/setopt
PROMPT="UNCONFIGURED%# " PROMPT="UNCONFIGURED%# "
return 1 return 1
@ -17,7 +16,6 @@ source $HOME/.zsh/alias
source $HOME/.zsh/interactive source $HOME/.zsh/interactive
source $HOME/.zsh/exports source $HOME/.zsh/exports
source $HOME/.zsh/bindkeys source $HOME/.zsh/bindkeys
source $HOME/.zsh/completion
source $HOME/.zsh/setopt source $HOME/.zsh/setopt
if [ $SYNTAX_HIGHLIGHT = true ] if [ $SYNTAX_HIGHLIGHT = true ]
then then

Loading…
Cancel
Save