comparison 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
comparison
equal deleted inserted replaced
790:4357ec45cd55 791:6261642f53d7
109 109
110 zle_highlight=('paste:none') 110 zle_highlight=('paste:none')
111 111
112 HISTSIZE=3000 112 HISTSIZE=3000
113 SAVEHIST=3000 113 SAVEHIST=3000
114 HISTFILE=~/.zsh_history
115 114
116 # Completion 115 # Completion
117 setopt complete_in_word 116 setopt complete_in_word
118 setopt always_to_end 117 setopt always_to_end
119 setopt auto_menu 118 setopt auto_menu
254 "Is" "| sort" 253 "Is" "| sort"
255 "Iv" "| ${VISUAL:-${EDITOR}}" 254 "Iv" "| ${VISUAL:-${EDITOR}}"
256 "Iw" "| wc" 255 "Iw" "| wc"
257 "Ix" "| xargs" 256 "Ix" "| xargs"
258 "Ic" "| clip" 257 "Ic" "| clip"
258 "psa" "ps -ax -o pid,pgid,user,start_time,time,command | rg"
259 ) 259 )
260 260
261 magic-abbrev-expand() { 261 magic-abbrev-expand() {
262 local MATCH 262 local MATCH
263 LBUFFER=${LBUFFER%%(#m)[_a-zA-Z0-9]#} 263 LBUFFER=${LBUFFER%%(#m)[_a-zA-Z0-9]#}
293 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc 293 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
294 export BAT_CONFIG_PATH=$HOME/.config/bat/config 294 export BAT_CONFIG_PATH=$HOME/.config/bat/config
295 295
296 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command' 296 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command'
297 297
298 export GPG_TTY=$(tty) 298 if [ -z "$GPG_TTY" ]; then
299 export GPG_TTY=$(tty)
300 fi
299 301
300 export ZK_NOTEBOOK_DIR=$HOME/notebook 302 export ZK_NOTEBOOK_DIR=$HOME/notebook
301 303
302 autoload -U compinit 304 autoload -U compinit
303 305