Skip to content

Instantly share code, notes, and snippets.

@isDipesh
Last active February 3, 2026 08:32
Show Gist options
  • Select an option

  • Save isDipesh/2775965 to your computer and use it in GitHub Desktop.

Select an option

Save isDipesh/2775965 to your computer and use it in GitHub Desktop.
My zsh aliases
alias ft='find / -type f -exec grep -i "$1" {} + 2>/dev/null'
alias zellij='zellij options --disable-mouse-mode'
alias k8000="fuser -k -n tcp 8000"
alias k3000="fuser -k -n tcp 3000"
alias n8='echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf'
alias p8='ping 8.8.8.8'
alias pg='ping google.com'
alias pacin='sudo pacman -S'
alias pacup='rl && sudo reflector --verbose --sort rate --save /etc/pacman.d/mirrorlist && sudo pacman -Syyu'
alias rl='sudo rm -f /var/lib/pacman/db.lck'
alias serve='python3 -m http.server'
alias ma='python manage.py makemigrations'
alias mi='python manage.py migrate'
#git aliases, on top of scm breeze
alias gpom='git pull origin main'
alias gp='git push'
alias gu='git pull'
alias gra='git remote | xargs -L1 git push --all'
# Helper function: $1=Project, $2=Subfolder, $3=Command
_pro() {
# Navigate to folder. If it fails, stop.
cd ~/pro/"$1"/"$2" || return
# If a command ($3) is provided, execute it.
[ -n "$3" ] && eval "$3"
}
# Root Shortcuts
y() { _pro "$1"; }
yr() { _pro "$1" "" "pnpm dev"; }
# Frontend Shortcuts (subfolder: name-f)
f() { _pro "$1" "$1-f"; }
fr() { _pro "$1" "$1-f" "pnpm dev"; }
# Backend Shortcuts (subfolder: name)
s() { _pro "$1" "$1"; }
sr() { _pro "$1" "$1" "python manage.py runserver 0.0.0.0:8000"; }
alias vi='vim'
export EDITOR=vim;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment