New fzf aliases and shortCuts

This commit is contained in:
Jonathan Hodgson 2019-10-18 09:02:22 +01:00
parent 874c53d8e6
commit 225fe5b043
4 changed files with 80 additions and 16 deletions

View file

@ -148,7 +148,8 @@ alias updateTime="sudo ntpd -qg"
# Keyboard - reset
# Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it
alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape"
#alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape"
alias kb="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle; xset r rate 200 70; xinput --list | grep -E 'ErgoDox EZ ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs setxkbmap -layout gb -device"
alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle"
alias qwerty="setxkbmap -layout gb"
@ -157,7 +158,7 @@ alias ol="open-local"
alias globalip="drill myip.opendns.com @resolver1.opendns.com | sed -n '/ANSWER SECTION/,/AUTHORITY SECTION/ p' | sed -n '2 p' | awk '{print \$5}'"
alias ss="cat /usr/share/exploitdb/files_exploits.csv | fzf | cut -d',' -f1 | xargs searchsploit -m"
alias ss="tail -n +2 /usr/share/exploitdb/files_exploits.csv | awk -F ',' '{print \$2 \"\t\" \$3 \"\t(\" \$1 \")\"}' | fzf --preview-window=up --preview='echo {} | cut -d\" \" -f1 | xargs echo \"/usr/share/exploitdb/\" | tr -d \" \" | xargs bat --color=always' | cut -d' ' -f3 | tr -d \"()\" | xargs searchsploit -m"
alias ddg="ddgr"