9

What aliases do you use in terminal? 🙂
I made 'cdd' to 'cd ~/Desktop'
and 'cd..' to 'cd ..'

Comments
  • 1
    alias cdlog='cd /var/log/application_log_directory/'

    alias taillog='tail -F /var/log/application_log_directory/current.log /usr/tomcat/log/{catalina.out,localhost_access.log}'

    qcat () { ## quiet-cat: removes commented-out lines
    sed -e '/^\([ \t]*$\|[ \t]*#\)/d' ${1}
    }
  • 4
    alias .='pwd'
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    alias l='ls -lah'

    alias please='sudo'
    alias sido='sudo'

    alias j='java -jar'

    alias dockup='sudo docker-compose up -d'
  • 4
    @ruhe haha 'please'
  • 4
    Like 3kb of aliases and custom functions. 😅
  • 1
    Edit: 4kb
    That's without includes defining colors, etc.
  • 2
    The only ones I actually use more than once a month are:

    alias cls='clear'
    alias wine32='WINEPREFIX=$HOME/.wine32 WINEARCH=win32'
  • 1
    @infernalempress i also use 'cls' but for 'reset'
  • 1
    A tp command to "teleport" into a commonly used directory. E.g. tp doc, tp dev, tp home.

    s, syu, r for yay / pacman

    py and depy for python venv

    n for nnn (file manager)
    nh for nnn with hidden files

    c = code . (Open VS Code in the current directory)

    i3c, polybarc, termitec, zshrc, ... for quickly editing dotfiles.

    And a couple more I guess
  • 1
    gs git status
    ga git add
    gcsm git commit -s -m
    gp git push origin
    gpp git pull origin
Add Comment