Skip to content

Instantly share code, notes, and snippets.

@fourthdimension
Last active May 1, 2024 02:00
Show Gist options
  • Save fourthdimension/4c42e5e615be4886b8a7561b065bf959 to your computer and use it in GitHub Desktop.
Save fourthdimension/4c42e5e615be4886b8a7561b065bf959 to your computer and use it in GitHub Desktop.
Fish Config with Starship Theme
fish_add_path /opt/homebrew/bin
alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing
alias la='exa -a --color=always --group-directories-first --icons' # all files and dirs
alias l='exa -ahl --color=always --group-directories-first --icons' # long format
alias ll='exa -ahl --color=always --group-directories-first --icons' # long format
alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing
alias l.="exa -a | egrep '^\.'" # show only dotfiles
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias dir='dir --color=auto'
alias !!='ghcs'
# File size
alias fs="stat -f '%z bytes'"
alias df="df -h"
alias grep='rg --color=auto'
# navigate to global ssh directory
alias sshhome='cd ~/.ssh'
# Get WAN IP
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
# Get local IP
alias localip="ipconfig getifaddr en0"
# edit configurations
alias config.ssh='code ~/.ssh/config'
alias config.fish='code ~/.config/fish/config.fish'
alias config.starship='code ~/.config/starship.toml'
# set env variables
set -Ux FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT true
set -Ux HOMEBREW_NO_ANALYTICS 1
starship init fish | source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment