forked from DustVoice/dotfiles
Insert conditional for when no oh-my-zsh script is found, which provides the user with a minimal prompt
This commit is contained in:
parent
77bf134492
commit
cd19ed53e4
2 changed files with 29 additions and 22 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -4,9 +4,6 @@
|
|||
[submodule ".config/nvim"]
|
||||
path = .config/nvim
|
||||
url = git@github.com:DustVoice/nvim.git
|
||||
[submodule ".oh-my-zsh"]
|
||||
path = .oh-my-zsh
|
||||
url = https://github.com/ohmyzsh/ohmyzsh.git
|
||||
[submodule ".zsh/plugins/zsh-vim-mode"]
|
||||
path = .zsh/plugins/zsh-vim-mode
|
||||
url = https://github.com/softmoth/zsh-vim-mode.git
|
||||
|
@ -19,3 +16,6 @@
|
|||
[submodule ".zsh/plugins/zsh-completions"]
|
||||
path = .zsh/plugins/zsh-completions
|
||||
url = https://github.com/zsh-users/zsh-completions
|
||||
[submodule ".oh-my-zsh"]
|
||||
path = .oh-my-zsh
|
||||
url = https://github.com/ohmyzsh/ohmyzsh.git
|
||||
|
|
9
.zshrc
9
.zshrc
|
@ -4,6 +4,8 @@ export ZSH="$HOME/.oh-my-zsh"
|
|||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
ZSH_CUSTOM="$HOME/.zsh"
|
||||
|
||||
OH_MY_ZSH="$ZSH/oh-my-zsh.sh"
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
|
@ -68,6 +70,7 @@ setopt HIST_IGNORE_DUPS
|
|||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt COMPLETE_ALIASES
|
||||
|
||||
if [[ -a $OH_MY_ZSH ]]; then
|
||||
ZSH_AUTOSUGGEST_USE_ASYNC="true"
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history)
|
||||
|
||||
|
@ -88,9 +91,13 @@ plugins=(colored-man-pages colorize command-not-found git zsh-completions zsh-au
|
|||
|
||||
autoload -U compinit && compinit
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source $OH_MY_ZSH
|
||||
|
||||
bindkey -M vicmd '^K' history-substring-search-up
|
||||
bindkey -M vicmd '^J' history-substring-search-down
|
||||
else
|
||||
PS1=$'%b%n@%M %~
|
||||
%(!.#.$) '
|
||||
fi
|
||||
|
||||
gpg-connect-agent updatestartuptty /bye
|
||||
|
|
Loading…
Reference in a new issue