← Volver a proyectos
Sloth Bash
Use bash like a sloth. Veeeery lazy.
#sloth-bash
Use bash like a sloth. Veeeery lazy.
#One-liner install
curl -fsSL https://raw.githubusercontent.com/psygreg/sloth-bash/main/install.sh | bash
#Features
- Intuitive response: just the file name will run it if executable; load a venv if there's any and wrap it in
python3if it's a .py file; or triggerxdg-openfor other cases. - Flatpak redirection: simplifies running flatpak applications from terminal by making
flatpak runobsolete through smart command handling. No moreio.github.kolunmi.Bazaar, justbazaarwill do the trick! - Easily open apps from terminal automatically detaching them with
detach appname. Perfect for usage with something like Quake Terminal for Gnome oryakuakeAlso works with flatpak redirection, local executables, and distrobox passthrough. cpandmvredirection torsync: make your file operations more efficient withrsync's delta copies, while also getting it to smartly display progress on larger tasks.- Simple file management in your shell: automatic
lsaftercdso you never get lost in your files, and enabled autocd shell option so you can navigate your subdirectories more intuitively. - Most used zsh shortcuts:
md,rd,mkcd,take,~and..work exactly like zsh, while you can usecd ...,cd ....andcd .....for the other upwards navigation commands. all: selects all files and subdirectories at its location as targets forrd,rm,cpandmv.- Better autocompletion with Tab key cycling through all options instead of just displaying them.
- FZF shell bindings: if fzf is installed,
sloth-bashenables the standard Bash integration, including fuzzy history search onCtrl+R. - Basic command colors: enables colored output for
ls,dir,vdirandgrep, plus familiar aliases likell,laandl. - Case-insensitive command parsing:,
ls,Ls,lSorLS, your command will always work. - Distrobox passthrough: enter your distrobox shell with
distroboxnameand pass commands to your distroboxes runningdistroboxname command(and any additional arguments if needed after). As distroboxes follow the user's~/.bashrcfile, sloth-bash also works from within them!
#Recommended usage
- Install Starship for the complete experience.
- Install fzf if you want the full fuzzy shell bindings.
- Copy sloth-bash to
~/.sloth-bash - Copy alias-list to
~/.alias-list - Copy starship.toml to
~/.config/starship.toml(not required if you don't wanna use Starship) - Add
source ~/.sloth-bashto the end of your~/.bashrcfile