Advertisement
AdmiralNemo

schroot-bashrc

Jul 24th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. # Apply settings that are valid inside schroot only
  2. if [ -n "$SCHROOT_SESSION_ID" ]; then
  3.         [ -f /etc/bashrc ] && source /etc/bashrc
  4.         export PS1="\[\033[01;32m\]\u@\h\[\033[00;35m\] (\$SCHROOT_CHROOT_NAME)\[\033[01;34m\] \w \\$\[\033[00m\] "
  5.         export HISTFILE=${HISTFILE}.${SCHROOT_CHROOT_NAME}
  6.         return
  7. fi
  8.  
  9. # Automatically start an schroot session for el7, if one is not
  10. # already running. To enter the session, use
  11. # schroot -r -cel7
  12. if ! schroot -l --all-sessions | cut -d: -f2 | grep -q el7; then
  13.         echo Started schroot session: $(schroot -b -nel7 -crhel7)
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement