fpath=(~/.zsh ~/.zsh/functions/Prompts "${fpath[@]}")
### options
-setopt autocd extendedglob promptsubst
-unsetopt beep
-
-### history
-setopt appendhistory
+setopt NO_BEEP NO_CLOBBER
+## cd
+setopt AUTO_CD CDABLE_VARS
+## completion
+setopt GLOB_COMPLETE
+## line
+setopt EXTENDED_GLOB GLOB_DOTS MARK_DIRS NOMATCH NUMERIC_GLOB_SORT
+## prompt
+setopt PROMPT_SUBST
+## jobs
+setopt AUTO_CONTINUE
+## history
+setopt NO_HIST_SAVE_BY_COPY HIST_IGNORE_DUPS SHARE_HISTORY
HISTFILE=~/.histfile
-HISTSIZE=100
-SAVEHIST=100
+HISTSIZE=1000
+SAVEHIST=1000
### keys
bindkey -v
#!/bin/sh
p="$1"
-if [ -z "$p" ]; then
+if [ -z "$p" -a "$(readlink -f $(which ps))" =~ "/busybox" ]; then
p="[$(ps -o comm= -p $(ps -o ppid= -p $$))]";
fi
~/bin/dmenu -p "$p" -fn Dina-10 -nb \#110800 -nf \#110800 -sb \#264bd2 -sf \#fdf6e3 <&-