From 13edd2b8e387782afc634e4e9e04ac168269a3e9 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 2 Nov 2016 20:13:01 +0100 Subject: [PATCH] enable zsh history --- config.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.nix b/config.nix index afdf66f..0156dc3 100644 --- a/config.nix +++ b/config.nix @@ -79,9 +79,14 @@ let bindkey -e setopt autocd + setopt inc_append_history + setopt share_history - export PROMPT='%B%(?..%? )%b⇒ ' - export RPROMPT='%F{green}%~%f' + HISTFILE=$HOME/.zhistory + HISTSIZE=4096 + SAVEHIST=$HISTSIZE + PROMPT='%B%(?..%? )%b⇒ ' + RPROMPT='%F{green}%~%f' export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/bin''${PATH:+:$PATH} export PATH=/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin''${PATH:+:$PATH}