Use mksh history

This commit is contained in:
davidovski 2023-11-12 23:08:36 +00:00
parent 90a7d7ceb3
commit 4c2194a7c5
2 changed files with 5 additions and 0 deletions

3
mkshrc
View file

@ -7,6 +7,9 @@ esac
export VIMINIT="source ~/.config/vim/vimrc"
export NVIMINIT="source ~/.config/vim/vimrc"
HISTFILE="$HOME/.mksh_history"
HISTSIZE=5000
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'

View file

@ -7,6 +7,8 @@ SEARCH_HISTORY=$HOME/.local/share/search_history
SEARCH=$(cat $SEARCH_HISTORY | dmenu -p "search")
[ -z "$SEARCH" ] && exit 1
echo "$SEARCH" >> $SEARCH_HISTORY
query=$(echo $SEARCH | sed 's/ /+/g')