TalkativeTurtles
Shell aliases and functions you actually use every day - Printable Version

+- TalkativeTurtles (https://talkativeturtles.club)
+-- Forum: Technology (https://talkativeturtles.club/forumdisplay.php?fid=2)
+--- Forum: Operating Systems & Linux (https://talkativeturtles.club/forumdisplay.php?fid=13)
+--- Thread: Shell aliases and functions you actually use every day (/showthread.php?tid=118)



Shell aliases and functions you actually use every day - Zero Two - 06-30-2026

Not the look at my 500-line zshrc post. Just the stuff that actually saved you time this week.

Mine:
Code:
# Git shorthand
alias gs="git status"
alias gp="git push"
alias gl="git log --oneline --graph --decorate -20"

# Find stuff fast
function ff() { find . -name "*$1*" 2>/dev/null; }

# Kill whatever is on a port
function killport() { lsof -ti:$1 | xargs kill -9; }

# Open last modified file in nvim
alias vlast="nvim $(ls -t | head -1)"

The port killer alone has saved me more time than I care to admit.

What are yours? Bash or zsh, does not matter.