summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-09 12:16:07 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-09 12:16:07 +0100
commit604692c73c31d3ff3c0057b70a106e97490eea90 (patch)
tree91b8f1fe1397ccaf2e307b0e5b91edfec7c9e7da
parentda95b88f1832bec65aeeba47e25d333914515b97 (diff)
added fzps alias
-rw-r--r--config/essentials/zsh/aliases.zsh6
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"