Wpis z mikrobloga

Moje najnowsze dzieło zsh, vi mode

wpisujesz komendę, albo masz komendę z historii z argumentami, wciśnij Ctrl-t i dostajesz mana komendy

# shortcut for adding man to the command
# I <- go to begin of line, write man
# ^[ <-escape (normal mode)
# El <-end of Word und 1 right
# d$ delete to end of line
bindkey -M vicmd -s '^t' 'Iman ^[Ela ^[d$'
bindkey -M viins -s '^t' '^[Iman ^[Ela ^[d$'

starsze dzieło http://www.wykop.pl/wpis/9413042/moje-najnowsze-dzielo-shellowskie-cdlt-cd-find-max/
#zsh, #bash, #shell, #linux #commandline