Skip to content

Instantly share code, notes, and snippets.

@julcap
Created June 18, 2018 08:18
Show Gist options
  • Save julcap/32ced55df01ff38cee16130dbc7b3a91 to your computer and use it in GitHub Desktop.
Save julcap/32ced55df01ff38cee16130dbc7b3a91 to your computer and use it in GitHub Desktop.
Bash aliases
Aliases (.bashrc )
alias ll='ls -lah'
alias l='ll'
alias updateme="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y"
screen (.screenrc)
# Set the window caption.
# I use caption instead of hardstatus, so it is available per split window too
# (hardstatus is only per complete screen).
caption always "%{= KW}%-Lw%{= wb}%n %t %{= KW}%+Lw %-=| ${USER}@%H | %M%d %c%{-}"
# Some decryption:
# %{= KW} background light black (aka dark gray) with foreground light white
# %{= wb} background dark white (ake light gray) with foreground dark blue
# %-Lw all windows before the current window.
# %n%f %t current window number, flags and title.
# %+Lw all windows after the current window.
# %-= pad remaining spaces.
# %H hostname.
# %M%d %s month and day (MmmDD) and current time (HH:MM).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment