chj-home
fasd
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
chj-home
-
How to navigate directories faster with Bash (2015)
I do the following [1]:
- I define "cdn" to be what others call "mkcd", as then if I have a command line "cd foo" and it tells me that foo doesn't exist, I can just add the 'n' to the previous entry. I also overload "cdn" so that when not given any argument, it goes into the newest subdirectory in the current directory.
- "u", "uu", "uuu", "uuuu", "uuuuu" for going "up" that many levels, and unlike the aliases in OP, I define them as functions and if those are given an argument, they descends into the path from there: "u foo" is equivalent to "cd ../foo", "uu foo" to "cd ../../foo".
- I also have a function called "mvcd foo bar" that moves foo to bar and then goes into bar. "mvcdnewdir foo bar" that does the same but will create bar. (I'm pondering unifying them to a version that always calls mkdir -p)
- an alias "c" for cd [2]. The single letter messes with the history search though (ctl-r c space or ctl-r cd space ?), so it's not necessarily a good idea.
- some functions for special locations, "cs" for ~/scratch, "cb" for ~/bookmarks, etc.
[1] see .bashrc at https://github.com/pflanze/chj-home
fasd
- Ask HN: What are some unpopular technologies you wish people knew more about?
- FASD Tool Getting Deprecated
-
Is there a plugin for selecting a recent/frequent file similar to autojump?
https://github.com/clvv/fasd ?
- What "nice-to-have" CLI tools do you know?
-
They're a special kind of breed these days.
"The name fasd comes from the default suggested aliases f(files), a(files/directories), s(show/search/select), d(directories)."
-
Setting Hyper with WSL 2
fasd
-
6 Command Line Tools for Productive Programmers
However, many tools exist which attempt to improve upon cd. autojump, z, and Fasd all track directory usage and give you a single key shortcut for changing to commonly accessed directories. r/commandline has an detailed discussion of these various cd replacements, but the one that has the most momentum is zoxide. zoxide is a rewrite of z in Rust and promises improved speed.
- Command Palette Interfaces
- Prog - A simple helper into programming directories
-
Do you use a file tree explorer?
Explorers: https://github.com/ranger/ranger (Excellent terminal file explorer) you can integrate it with fasd (or z probably) to quickly find frecent files https://github.com/clvv/fasd https://github.com/rafaqz/ranger.vim (vim integration) Or https://github.com/Shougo/defx.nvim (vim file explorer by the infamous shougo)
What are some alternatives?
bashmarks - Directory bookmarks for the shell
zoxide - A smarter cd command. Supports all major shells.
ranger - A VIM-inspired filemanager for the console
zsh-z - Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
autojump - A cd command that learns - easily navigate directories from the command line
fzf - :cherry_blossom: A command-line fuzzy finder
z - z - jump around
defx.nvim - :file_folder: The dark powered file explorer implementation for neovim/Vim8
prezto - The configuration framework for Zsh
zsh-completions - Additional completion definitions for Zsh.
fzf-checkout.vim - Manage branches and tags with fzf
hstr - bash and zsh shell history suggest box - easily view, navigate, search and manage your command history.