update zshrc added alias for ping and history command
prithugoswami prithugoswami524@gmail.com
Tue, 18 Sep 2018 05:50:43 +0530
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
.zshrc
→
.zshrc
@@ -96,6 +96,8 @@ alias sn="shutdown now"
alias rn="shutdown -r now" alias :wq="exit" alias tmux="tmux -u" +alias ch="ping 8.8.8.8" + #alias cfzf="cd $(fzf)" #<cmd> | pastebin will upload the stdout of <cmd> and put the link #in the clipboard@@ -122,6 +124,12 @@ else
task add +in "$@" fi } + +#history search using fzf +h(){ + $(cat ~/.zsh_history | awk -F ';' '{ $1="" ; print }' | fzf --tac ) +} + alias t="task" alias todo="task modify -in"