From c2e51bc0d1b14fcd5d8b29cf3c87d8f18666231f Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 19 Mar 2020 11:32:07 +0100 Subject: Add possible terminal with no history reference --- .config/shell/env | 17 ++++++++++++++--- .config/sxhkd/sxhkdrc | 5 ++++- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to '.config') diff --git a/.config/shell/env b/.config/shell/env index b04d6b9..0edfb6a 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -15,9 +15,20 @@ export ALTERNATE_EDITOR="ed" export WWW_HOME=https://duckduckgo.com/ # set history -export HISTFILE=~/.local/var/shell/histfile && mkdir -p -- "$(dirname "${HISTFILE}")" -export HISTSIZE=10000 -export SAVEHIST=10000 +if [ -z "$TERM_NO_HISTORY" ] +then + [ "$SHELL_DEBUG" ] && printf "Setting shell history" + + export HISTFILE=~/.local/var/shell/histfile && mkdir -p -- "$(dirname "$HISTFILE")" + export HISTSIZE=10000 + export SAVEHIST=10000 +else + [ "$SHELL_DEBUG" ] && printf "Unsetting shell history" + + unset HISTFILE + unset HISTSIZE + unset SAVEHIST +fi # set dmenu rice export DMENU_OPTS='-i -fn "Liberation Mono:pixelsize=13" -nb "#000" -nf "#fff" -sb "#4c679a" -l 15 -dim 0.5 -o 0.9' diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 6af774f..a4b565a 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,6 +1,9 @@ # spawn applications super + Return - termite + term + +super + alt + Return + term -c super + e dmenu_run -- cgit v1.1