aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
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