Skip to content

Instantly share code, notes, and snippets.

@peterkos
Created August 29, 2022 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkos/690c1c4e6c8514f63dba1d436c5fc278 to your computer and use it in GitHub Desktop.
Save peterkos/690c1c4e6c8514f63dba1d436c5fc278 to your computer and use it in GitHub Desktop.
All of my fish aliases :)
alias cl "osascript -e 'tell application \"System Events\" to keystroke \"k\" using command down'"
alias cls "clear && exa"
alias ls "exa"
alias lsl "ls -l"
alias lsa "ls -a"
alias lsal "ls -al"
alias c "clear"
alias rf "source ~/.config/fish/config.fish"
alias sub "subl" # am lazy
alias ef "sub ~/.config/fish/config.fish"
# alias dr "docker stop (docker ps -aq)
 && docker rm (docker ps -a -q -f status=exited)"
alias o "open ."
alias s "sub ."
alias gs "git status"
alias gd "git diff"
alias gc "git commit"
alias ga "git add"
alias gl "git log"
alias gb "git branch"
alias gcm "git commit -m"
alias gpm "gh pr list -a peterkos"
alias prv "gh pr view -w"
alias rpc "rm -rf .parcel-cache dist"
alias ns "rpc && npm start"
alias nd "npm run dev"
alias tower "gittower"
alias t "tower"
alias rfc "rm -rf .parcel-cache"
alias zp "zola serve --drafts"
alias db "dotnet build"
alias dr "dotnet run"
alias cdr "c && dr"
alias cdb "clear && db"
alias jo "jira open"
alias k "kubectl"
alias kga "kubectl get all"
alias p3 "python3"
alias g "cd ~/Code/GitHub/ && c"
alias br "cd ~/Code/GitHub/brickhack.io && c"
alias bh "br"
alias he "cd ~/Code/GitHub/hackathon-manager && c"
alias hef "he && cd frontend"
alias cr "cargo run"
alias ccr "clear && cr"
alias cb "cargo build"
alias ccb "clear && cb"
alias cn "cargo new"
alias ct "cargo test"
alias cts "ct -- --test-threads 1"
setenv EDITOR vim
# source $HOME/.cargo/env
# https://github.com/rust-analyzer/rust-analyzer/issues/2653#issuecomment-628656084
# export CARGO="~/.cargo/bin"
function "git shove"
git push --force
end
fish_add_path /Users/peterkos/.spicetify
fish_add_path /opt/homebrew/opt/ruby/bin
# make sure fish can find our gems :)
# use `gem environment` to find again
# src: https://stackoverflow.com/questions/6482738/installing-ruby-gems-not-working-with-home-brew
fish_add_path /opt/homebrew/lib/ruby/gems/3.1.0/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment