dotfiles
zoxide
dotfiles | zoxide | |
---|---|---|
3 | 100 | |
28 | 18,767 | |
- | - | |
7.1 | 8.1 | |
about 2 months ago | 6 days ago | |
Shell | Rust | |
Do What The F*ck You Want To Public License | MIT License |
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.
dotfiles
-
The bash book to rule them all
> An interactive shell can be a login-shell or a non-login-shell.
A shell can be login and non-interactive.
This happens e.g when starting a session from a X session manager. Subsequently a terminal such as Xterm starts non-login interactive sessions.
Similarly doing ssh starts a non-interactive login shell.
> However, bash behaves like an interactive non-login shell in this case and reads `bashrc`.
IIRC nope: distros such as Debian often have bashrc source bash profile (or the other way around, I can't recall) which has me irate to no end+. They even have some TTY dependent stuff in profile which spits out some error in some cases when no TTY is allocated because heh not interactive.
+ I took great length to have my rc and profile properly separated because it's that much faster not to source the unneeded stuff. https://github.com/lloeki/dotfiles
-
A Dotfile History
Got a similar repo: https://github.com/lloeki/dotfiles
A couple of differences though.
- there's a setup script to do the basic symlinks, automatically from the files in the "home" subdir by prepending the names with .
- then for shell stuff everything is sourced from either shell, bash, or zsh subdirs, all in modular files
- shell dir content is autoloaded based on +x
- there are polyfills for bash that makes it more zsh-like (stuff like precmd)
- each shell module tests for tool presence and is a noop or sets up a fallback when the tool is not available, so I can clone this on any system and have it still work, gracefully degrading down to zero deps except the shell itself
- it also attempts to provide a uniform experience across bash versions and OSes (darwin, linux)
- prompt is minimal (workdir, dirname only, not the full path), increases with detail progressively and in a hierarchical order (root if root, host if ssh, workdir, vcs branch if in repo, vcs status as symbols if nonempty, venv name if virtualenv, "nix" if in nix shell)
- How to navigate directories faster with Bash (2015)
zoxide
- Say good bye to cd and hello Zoxide - the better and smarter cd command
-
You might want to replace cd command with Zoxide š ā a smarter and trainable cd alternative šļø
Head over to ajeetdsouza/zoxide and install it now! It's innovative, free, and flexible!
- A smarter CD command. Supports all major shells
-
Z ā Jump Around
I use this Rust clone which works great, no complaints: https://github.com/ajeetdsouza/zoxide
Although, I don't know what the difference is, other than the language of choice.
-
Cdpath: Easily Navigate Directories in the Terminal
I use https://github.com/ajeetdsouza/zoxide, which is inspired by z and autojump.
-
Ask HN: Share a shell script you like
Zoxide is basically the 'Rust Rewrite' version of the 'Z' tool and is actively maintained, I haven't had any issues with it: https://github.com/ajeetdsouza/zoxide
-
env::set_current_dir() -- is either not functioning as intended or I'm just messing something up
Indeed, utilities like zoxide which operate primarily as a cd replacement don't attempt to change directories via rust code - they create a shell alias that ultimately invokes a shell builtin to do it.
-
Everything I Installed on My New Mac
I also still use zoxide for navigating directories. It's a smarter cd command that learns your habits and makes navigating directories a breeze.
-
Top Productivity CLI Tools I Use on Linux
4. Zoxide
-
How to achieve the function of the Mac app Hookmark in the terminal?
Not sure what you mean by bookmarks, but I use zoxide to quickly jump to frequently used folders.
What are some alternatives?
fzf - :cherry_blossom: A command-line fuzzy finder
autojump - A cd command that learns - easily navigate directories from the command line
nnn - nĀ³ The unorthodox terminal file manager
z - z - jump around
goat - POSIX-compliant shell movement boosting hack for real ninjas (aka `cd x` and `cd ...`)
zsh-z - Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
bashmarks - Directory bookmarks for the shell
fasd - Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.
ohmyzsh - š A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
z.lua - :zap: A new cd command that helps you navigate faster by learning your habits.
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!