From: ds6 Date: Thu, 19 Mar 2020 02:42:14 +0000 (-0500) Subject: clean .zprofile vars, update zsh opts, fix dpass X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/186423fe66144fbe2335fd9ca716fdea6cb55712 clean .zprofile vars, update zsh opts, fix dpass --- diff --git a/base/.zprofile b/base/.zprofile index 3cc9587..425a48c 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -10,3 +10,5 @@ if [[ ! -e "$t" ]] { if [[ ! -e "$h" ]] { ln -sf "$t" "$h" > /dev/null 2>&1 } +unset t +unset h diff --git a/base/.zshrc b/base/.zshrc index 6cbdfe0..e06c318 100644 --- a/base/.zshrc +++ b/base/.zshrc @@ -2,14 +2,22 @@ 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 diff --git a/bin/dpass b/bin/dpass index a7dddb8..e8f446a 100755 --- a/bin/dpass +++ b/bin/dpass @@ -1,6 +1,6 @@ #!/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 <&-