logoalt Hacker News

alzeeyesterday at 12:22 PM3 repliesview on HN

Using commas in filenames feels kind of weird to me, but I do use a comma as the initiator for my Bash key sequences. For example: ,, expands to $ ,h expands to --help ,v expands to --version ,s prefixes sudo

You put keyseqs in ~/.inputc, set a keyseq-timeout, and it just works.


Replies

zahlmanyesterday at 3:49 PM

You could also do this sort of thing with XCompose, yes?

pmarreckyesterday at 1:31 PM

would an alias just work in this use-case?

show 1 reply
pmarreckyesterday at 1:43 PM

also. did you mean .inputrc ?