mirror of
https://github.com/samsonjs/config.git
synced 2026-04-27 15:07:46 +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
4
zshrc
4
zshrc
|
|
@ -113,7 +113,9 @@ fi
|
||||||
# ---------------------------------------
|
# ---------------------------------------
|
||||||
#setopt ignoreeof # ignore EOF ('^D') (i.e. don't log out on it)
|
#setopt ignoreeof # ignore EOF ('^D') (i.e. don't log out on it)
|
||||||
setopt braceccl # {a-d} expands to a b c d
|
setopt braceccl # {a-d} expands to a b c d
|
||||||
|
if is_interactive; then
|
||||||
setopt noclobber # don't overwrite existing files w/ > output redir
|
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
|
setopt hist_allow_clobber # C-p or UP and command has >| now, ready to go
|
||||||
|
|
||||||
### Changing Directories
|
### Changing Directories
|
||||||
|
|
@ -201,11 +203,13 @@ bindkey '\ep' history-beginning-search-backward
|
||||||
### Prompt Subsystem
|
### Prompt Subsystem
|
||||||
# ===================
|
# ===================
|
||||||
# Load the prompt theme system
|
# Load the prompt theme system
|
||||||
|
if is_interactive; then
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
promptinit
|
promptinit
|
||||||
|
|
||||||
# Use my prompt theme, based on wunjo (zsh-git)
|
# Use my prompt theme, based on wunjo (zsh-git)
|
||||||
prompt sjs
|
prompt sjs
|
||||||
|
fi
|
||||||
|
|
||||||
### Aliases
|
### Aliases
|
||||||
# ===========
|
# ===========
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue