Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ape4
on April 22, 2021
|
parent
|
context
|
favorite
| on:
How to navigate directories faster with Bash (2015...
Would it possible to alias the escape codes make by the up arrow as 'cd ..'
forgotpwd16
on April 22, 2021
[–]
It is possible. Just source that.
bind '"\e[A":"cd ..\n"'
But would you really want that rather showing previous command?
ape4
on April 24, 2021
|
parent
[–]
Cool, and duh about the previous command. I supposed some key that's not used for anything on the command line would be needed. Keypad up arrow instead of regular up arrow. Or a single ESC?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: