diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-09 12:16:07 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-09 12:16:07 +0100 |
commit | 604692c73c31d3ff3c0057b70a106e97490eea90 (patch) | |
tree | 91b8f1fe1397ccaf2e307b0e5b91edfec7c9e7da /config/essentials/zsh | |
parent | da95b88f1832bec65aeeba47e25d333914515b97 (diff) |
added fzps alias
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r-- | config/essentials/zsh/aliases.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index f532a5f..f13d3bb 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -116,6 +116,12 @@ alias -g cfdef='$EDITOR config.def.h' alias -g ff='`fzffile`' alias -g fd='`fzfdir`' alias -g fdf='`fzfdirfile`' +alias fzps='ps aux | tail +2 | fzf --bind \ +"1:execute(echo -n {} | awk '\''{print \$1}'\'' | xclip -sel c -r),\ +2:execute(echo -n {} | awk '\''{print \$2}'\'' | xclip -sel c -r),\ +3:execute(echo -n {} | awk '\''{print \$7}'\'' | xclip -sel c -r),\ +4:execute(echo -n {} | awk '\''{print \$9}'\'' | xclip -sel c -r),\ +5:execute(echo -n {} | tr -s '\'' '\'' | cut -f 11- -d '\'' '\'' | xclip -sel c -r)"' alias -s conf="$EDITOR" alias -s txt="$EDITOR" |