Skip to content

Instantly share code, notes, and snippets.

@umkl
Created January 10, 2025 11:43
Show Gist options
  • Save umkl/346c042f11d156e013ccce0c3b464018 to your computer and use it in GitHub Desktop.
Save umkl/346c042f11d156e013ccce0c3b464018 to your computer and use it in GitHub Desktop.
My current fish config
# Only execute commands in interactive sessions
if status is-interactive
# Ensure Homebrew is in the PATH for everything installed via Homebrew
if type brew &>/dev/null
set -gx PATH $PATH (brew --prefix)/bin
set -gx PATH $PATH (brew --prefix)/sbin
end
end
# Variables
set -g FCONF ~/.config/fish/config.fish
set -g NCONF ~/.config/nvim
# Aliases
alias n nvim
alias clearsimucache="rm -R ~/Library/Developer/CoreSimulator/Caches"
alias spdl="spotifydl"
alias act_scdl="source ~/Music/myenv/bin/activate"
alias py="python3"
alias pip="pip3"
alias hide-desktop-items="defaults write com.apple.finder CreateDesktop false; killall Finder"
alias show-desktop-items="defaults write com.apple.finder CreateDesktop true; killall Finder"
alias work="timer 50m && osascript -e 'display notification \"β˜•\" with title \"Work Timer is up!\" subtitle \"Take a Break 😊\" sound name \"Crystal\"'"
alias workc='function work_alias; timer $argv[1] && osascript -e "display notification \"β˜•\" with title \"Work Timer is up!\" subtitle \"Take a Break 😊\" sound name \"Crystal\"" && say "Phase complete"; end; work_alias'
alias workt="timer $argv[1] && osascript -e 'display notification \"β˜•\" with title \"Work Timer is up!\" subtitle \"Take a Break 😊\" sound name \"Crystal\"' && say \"Phase complete\""
alias rest="timer 10m && terminal-notifier -message 'Pomodoro' -title 'Break is over! Get back to work 😬' -appIcon '~/Pictures/pumpkin.png' -sound Crystal"
alias loadsoundc="source ~/Music/myenv/bin/activate"
# Set environment variables and update PATH
set -gx PATH $PATH /usr/local/go
set -gx PATH $PATH /Users/michael/Development/flutter/bin
set -gx PATH $PATH /Users/michael/Library/Python/3.9/bin
set -gx PATH $PATH $HOME/.maestro/bin
set -gx PATH $PATH /opt/homebrew/opt/ruby/bin
# Make sure Homebrew is available in the path for everything installed via Homebrew
set -U fish_user_paths /opt/homebrew/bin $fish_user_paths
# SSH key setup (commented out until needed)
# ssh-add ~/.ssh/waterbyte-worker
# chmod 600 ~/.ssh/waterbyte-worker
# Set prompt
set -g PROMPT 'bloke@%m:%~%# '
# nvm
set -gx NVM_DIR (brew --prefix nvm)
bass source (brew --prefix nvm)/nvm.sh --no-use
fnm env | source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment