• Welcome to TalkativeTurtles - a community for developers & tech enthusiasts.
  • Share projects, get code reviewed, and talk tech without the noise.
  • New here? Introduce yourself in the Introductions forum!
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title: Shell aliases and functions you actually use every day
Threaded Mode
#1
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.
Reply
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  Terminal setup thread - share your shell, prompt, and tools Zero Two 1 191 06-22-2026, 12:25 AM
Last Post: Zero Two

Forum Jump:


Browsing: 1 Guest(s)