aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-27 15:54:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-27 15:54:13 +1200
commitab67c7ca6f0191d2c47f2e07731ca084559f9c4f (patch)
treedf8f50ead59fd76479ef1928059a6f4dba74888c /zsh/zshrc
parentUse command -p to find tty(1) (diff)
downloaddotfiles-ab67c7ca6f0191d2c47f2e07731ca084559f9c4f.tar.gz
dotfiles-ab67c7ca6f0191d2c47f2e07731ca084559f9c4f.zip
Port Bash prompt to Zsh
Somewhat naïvely; just quick searches of `man zshall`. I'm sure some of the stuff I removed has analogous features or that they can be implemented.
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 014ac3fd..2376e568 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -7,5 +7,8 @@ HISTFILE=$HOME/.zsh_history
SAVEHIST=$((1 << 12))
HISTSIZE=$((1 << 10))
-# Load POSIX shell functions
-source "$ENV"
+# Load POSIX shell startup files and then Bash-specific ones
+for sh in "$ENV" "$HOME"/.zshrc.d/*.zsh ; do
+ [[ -e $sh ]] && source "$sh"
+done
+unset -v sh