Ask DN: Favorite bash_profile aliases?

almost 4 years ago from David M, UI Developer

  • Juan OlveraJuan Olvera, almost 4 years ago (edited almost 4 years ago )

    be nice

    alias please=sudoalias hosts='sudo $EDITOR /etc/hosts'

    list only directories

    alias lsd='ls -l | grep "^d"'

    cat with beautiful colors. requires Pygments installed

    alias c='pygmentize -0 style=monokai -f console256 -g'

    undo a git push

    alias undopush="git push -f origin HEAD^:master"

    0 points