سؤال

I found myself typing 'cd ..' quite often. Just to reduce number of keystroke, Is there any shortcut/key combo I can use to go up one directory? If not, how do I create one?

Instead of aliasing "cd ..", can I set up something like "ctrl + p"?

هل كانت مفيدة؟

المحلول

the following command can make you execute cd .. by pressing Ctrl+t

bind '"\C-t":"cd ..\n"'
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top