Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Created December 1, 2019 19:18
Show Gist options
  • Save chanmix51/cc2c0463e841c14fe33be95c7f0f69ca to your computer and use it in GitHub Desktop.
Save chanmix51/cc2c0463e841c14fe33be95c7f0f69ca to your computer and use it in GitHub Desktop.
bashrc for LXC containers
alias ll='ls -lh'
ylw=$(tput setaf 227)
grn=$(tput setaf 154)
red=$(tput setaf 196);
bld=$(tput bold);
rst=$(tput sgr0);
export PS1="LXC[\[$([ $UID -eq 0 ] && echo "$red" || echo "$grn")\]$(hostname)\[$rst\]]:\[$bld\]\w\[$rst\]# "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment