Adds some more options to the change command function

This commit is contained in:
Jonathan Hodgson 2021-09-07 17:07:25 +01:00
parent 16b919dc3e
commit dbdec93713

View file

@ -121,7 +121,7 @@ bindkey '\em' make_current_word_directory
swap_command(){ swap_command(){
# Each group should be seperated by a colon with each item in a group # Each group should be seperated by a colon with each item in a group
# seperated by a space # seperated by a space
local groups="cd vim ls:ping mtr" local groups="cd vim ls:ping mtr:mysql mycli postgres pgcli:du:ncdu"
local tokens=(${(z)LBUFFER}) local tokens=(${(z)LBUFFER})
local cmd="${tokens[1]}" local cmd="${tokens[1]}"
local newindex=0 local newindex=0