mirror of
https://github.com/samsonjs/config.git
synced 2026-03-25 09:15:47 +00:00
Conditionally configure zsh based on interactivity
This commit is contained in:
parent
54e474cd26
commit
32461a3a56
1 changed files with 9 additions and 5 deletions
14
zshrc
14
zshrc
|
|
@ -113,7 +113,9 @@ fi
|
|||
# ---------------------------------------
|
||||
#setopt ignoreeof # ignore EOF ('^D') (i.e. don't log out on it)
|
||||
setopt braceccl # {a-d} expands to a b c d
|
||||
setopt noclobber # don't overwrite existing files w/ > output redir
|
||||
if is_interactive; then
|
||||
setopt noclobber # don't overwrite existing files w/ > output redir
|
||||
fi
|
||||
setopt hist_allow_clobber # C-p or UP and command has >| now, ready to go
|
||||
|
||||
### Changing Directories
|
||||
|
|
@ -201,11 +203,13 @@ bindkey '\ep' history-beginning-search-backward
|
|||
### Prompt Subsystem
|
||||
# ===================
|
||||
# Load the prompt theme system
|
||||
autoload -U promptinit
|
||||
promptinit
|
||||
if is_interactive; then
|
||||
autoload -U promptinit
|
||||
promptinit
|
||||
|
||||
# Use my prompt theme, based on wunjo (zsh-git)
|
||||
prompt sjs
|
||||
# Use my prompt theme, based on wunjo (zsh-git)
|
||||
prompt sjs
|
||||
fi
|
||||
|
||||
### Aliases
|
||||
# ===========
|
||||
|
|
|
|||
Loading…
Reference in a new issue