From 186423fe66144fbe2335fd9ca716fdea6cb55712 Mon Sep 17 00:00:00 2001 From: ds6 Date: Wed, 18 Mar 2020 21:42:14 -0500 Subject: [PATCH] clean .zprofile vars, update zsh opts, fix dpass --- base/.zprofile | 2 ++ base/.zshrc | 22 +++++++++++++++------- bin/dpass | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) 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 <&- -- 2.47.0