I upvoted for this alone: Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be mkdir -p make/new/directory cd !$ You've no idea how many years I've been thinking "This is Linux fer gawd's sake. Surely there must be some easy way to make a n…
How to navigate directories faster with Bash (2015)
21–30 of 179 posts
Re: How to navigate directories faster with Bash (2015)
#22https://github.com/junegunn/fzf also has a “cd mode”, by default triggerable using Alt-C, which can be useful.
Re: How to navigate directories faster with Bash (2015)
#23https://gist.github.com/euske/4f06a6e060131949085c493bd28a0c...
edit: url
Re: How to navigate directories faster with Bash (2015)
#24I upvoted for this alone: Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be mkdir -p make/new/directory cd !$ You've no idea how many years I've been thinking "This is Linux fer gawd's sake. Surely there must be some easy way to make a n…
Typing Esc then . does the trick too.
Re: How to navigate directories faster with Bash (2015)
#25I use `z` as a less manual way to search common directories instead of changing $CDPATH. It's based on 'frecency'. https://github.com/rupa/z
I use `autojump` (aliased as `j`), which sounds quite similar as it also records your most frequently visited directories. It's as simple as entering `j down` to enter /some/path/to/MyDownloadFolder. For exploring massive file trees, a terminal file manager that allows you to preview the contents of subdirectories without entering them is huge time saver. I use `lf`. https://github.com/wting/autojump https://github.c…
Re: How to navigate directories faster with Bash (2015)
#26I upvoted for this alone: Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be mkdir -p make/new/directory cd !$ You've no idea how many years I've been thinking "This is Linux fer gawd's sake. Surely there must be some easy way to make a n…
Typing Esc then . does the trick too.
Further, holding Alt followed by numeric argument followed by dot, gives you an argument at a specific position. For example, Alt + 1, Alt + . copies the first argument.
Re: How to navigate directories faster with Bash (2015)
#27Re: How to navigate directories faster with Bash (2015)
#28I upvoted for this alone: Another neat short hand is !$ which is an alias for the last argument of the previous command. This can be handy if one creates a new directory and wants to change into it without typing the the directory again. So commands would be mkdir -p make/new/directory cd !$ You've no idea how many years I've been thinking "This is Linux fer gawd's sake. Surely there must be some easy way to make a n…
Typing Esc then . does the trick too.
Re: How to navigate directories faster with Bash (2015)
#29I like the autocomplete, the fact that when cd-ing a known path you can just type the first leter of each directory with slashes, showing the git branch in working dir.
Its the little things.
Re: How to navigate directories faster with Bash (2015)
#30I use `z` as a less manual way to search common directories instead of changing $CDPATH. It's based on 'frecency'. https://github.com/rupa/z