Skip to content

Instantly share code, notes, and snippets.

@TheNetJedi
Created October 16, 2024 05:27
Show Gist options
  • Save TheNetJedi/c3570bbbd36134ab6ba7e219eb93446e to your computer and use it in GitHub Desktop.
Save TheNetJedi/c3570bbbd36134ab6ba7e219eb93446e to your computer and use it in GitHub Desktop.
Fish Shell Basic Config
set -g fish_greeting
# starship prompt - install starship for this to work
if status is-interactive
starship init fish | source
end
# List Directory (install eza for this to work)
alias l='eza -lh --icons=auto' # long list
alias ls='eza -1 --icons=auto' # short list
alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
alias ld='eza -lhD --icons=auto' # long list dirs
alias lt='eza --icons=auto --tree' # list folder as tree
# Handy change dir shortcuts
abbr .. 'cd ..'
abbr ... 'cd ../..'
abbr .3 'cd ../../..'
abbr .4 'cd ../../../..'
abbr .5 'cd ../../../../..'
# Always mkdir a path (this doesn't inhibit functionality to make a single dir)
abbr mkdir 'mkdir -p'
@TheNetJedi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment