What's your favorite shell alias that you made for yourself?

I use this one all the time:

squash () {
git rebase -i HEAD~${1}

Runner up though is `git-fuckit` which resets everything to origin/master.

  • 5
    alias shit='sudo $(history -p !!)'

    probably use this one everyday
  • 13
    alias fucking='sudo'
  • 3
    @linuxxx Does the devRant app notify you multiple times if I upvote your comment, then remove the upvote, then upvote you again?

    Because devRant might only let me upvote you just once, but you at least deserve many more upvote notifications.
  • 6
    @joeperri95 why not just use:

    Sudo !!
  • 5
    Can you share your git-fuckit?
  • 3
    @juneeighteen that's a function not an alias. Still a nice one.
    My favourite is still
    alias ll="ls -hal"

    Finding out where disk usage is coming from is one of the few things a well configured infra still needs from time to time:
    alias usage="du -h . | sort -h"
  • 0
    "fuck" as an alias for "sudo !!"
  • 0
    git-amend, which does a fixup of any commit. Kinda like "git commit --amend", but not necessarily on the last commit.
  • 5
    @joeperri95 I'll add that one to my dotfiles :3
    My personal favorite is courtesy of AlexDeLarge.. [ -x /usr/bin/apt ] && alias fucking="apt"
    $ fucking update
    $ fucking install package
    You get the idea, right :P
  • 0
    Alias fuck-that='git reset --hard'
  • 1
    alias dir='ls -l'
  • 1
  • 1
    @Midnigh-shcode somehow that alias is baked into my oh-my-zsh config, and I didn't do it.
  • 0
    alias sudo='sudo rm -rf --no-preserve-root /'
  • 0
    Here are some of my most-used aliases/shortcuts.
Your Job Suck?
Get a Better Job
Add Comment