Mercurial > dotfiles
diff dot_zshrc @ 791:6261642f53d7
feat: add ps abbreviation
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Wed, 10 May 2023 12:12:56 +0200 |
parents | 90ebb41f9b14 |
children | 1f10e0814bb2 |
line wrap: on
line diff
--- a/dot_zshrc Mon May 08 08:24:43 2023 +0200 +++ b/dot_zshrc Wed May 10 12:12:56 2023 +0200 @@ -111,7 +111,6 @@ HISTSIZE=3000 SAVEHIST=3000 -HISTFILE=~/.zsh_history # Completion setopt complete_in_word @@ -256,6 +255,7 @@ "Iw" "| wc" "Ix" "| xargs" "Ic" "| clip" + "psa" "ps -ax -o pid,pgid,user,start_time,time,command | rg" ) magic-abbrev-expand() { @@ -295,7 +295,9 @@ export PS_FORMAT='pid,pgid,state,start_time,%cpu,command' -export GPG_TTY=$(tty) +if [ -z "$GPG_TTY" ]; then + export GPG_TTY=$(tty) +fi export ZK_NOTEBOOK_DIR=$HOME/notebook