aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-15 10:45:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-15 10:45:44 +1200
commit34718fe355308b03c4eecdca9dc69bb22ded433a (patch)
treef877925eefc7e391e86c52efdca9c47cc682e229 /zsh
parent5dc99a9f1ba24fa4e95060d9ca1ab9a96ce0ad22 (diff)
downloaddotfiles-34718fe355308b03c4eecdca9dc69bb22ded433a.tar.gz
Instate some actual real zsh configuration
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zprofile6
-rw-r--r--zsh/zshrc9
2 files changed, 13 insertions, 2 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index b61ca248..95214ef6 100644
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -1 +1,5 @@
-exec bash -l
+# Zsh doesn't source ~/.profile by default, even when this file is absent.
+# <https://sanctum.geek.nz/images/identifying-heresy.jpg>
+if [[ -e $HOME/.profile ]] ; then
+ source "$HOME"/.profile
+fi
diff --git a/zsh/zshrc b/zsh/zshrc
index a2a3d4ca..a5b8dd7e 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1 +1,8 @@
-exec bash
+# Emacs keybindings even if EDITOR is vi(1)
+bindkey -e
+
+# History settings
+setopt histignorealldups sharehistory
+HISTSIZE=$((1 << 12))
+SAVEHIST=$((1 << 24))
+HISTFILE=$HOME/.zsh_history