X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=2015-virt-tools%2Fbashrc;fp=2015-virt-tools%2Fbashrc;h=4c6a3c698f6a083e373874bddd5e52741c98021a;hb=d5ed61baa8deb36d33c7595cc83249991c66fe1f;hp=0000000000000000000000000000000000000000;hpb=0f314fa1cd53ba9f485d5a3253abd6276e5fe0cf;p=libguestfs-talks.git diff --git a/2015-virt-tools/bashrc b/2015-virt-tools/bashrc new file mode 100644 index 0000000..4c6a3c6 --- /dev/null +++ b/2015-virt-tools/bashrc @@ -0,0 +1,17 @@ +# -*- shell-script -*- + +# Colour ls. +if [ -f /etc/profile.d/colorls.sh ]; then . /etc/profile.d/colorls.sh; fi + +# Fancy prompt colours (see +# https://wiki.archlinux.org/index.php/Color_Bash_Prompt) +promptcol='\e[0;32m' ;# colour for the prompt +commandcol='\e[1;31m' ;# colour for the typed command +outputcol='\e[0m' ;# colour for command output + +export PS1="\n\[$promptcol\]\$ \[$commandcol\]" + +trap 'echo -ne "$outputcol"' DEBUG + +# Load key bindings (if any). +bind -f $talkdir/bindings