diff options
author | Karel Kočí <cynerd@email.cz> | 2018-04-04 09:55:49 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-04-04 09:57:37 +0200 |
commit | 7ad63ac537482aaa43eae2de19ef83d332beacc2 (patch) | |
tree | 80bf10fc01d13a1e2ed7756cee75de103f80cf16 /bashrc | |
parent | b5d63999c82eb89c0bd671c2ae04b936b6ec714d (diff) | |
parent | e6e04d7c587b17c23a90f3aa37ab5bdeec8415bb (diff) | |
download | myconfigs-7ad63ac537482aaa43eae2de19ef83d332beacc2.tar.gz myconfigs-7ad63ac537482aaa43eae2de19ef83d332beacc2.tar.bz2 myconfigs-7ad63ac537482aaa43eae2de19ef83d332beacc2.zip |
Merge branch 'master' into server
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -1,36 +0,0 @@ -# .bashrc - -source ~/.shellrc - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -# Source global definitions -if [ -f /etc/bashrc ]; then - . /etc/bashrc -fi - -# PROMPT ####################################################### -PS1='$( -if [ `id -u` -eq "0" ]; then - echo -n "\[\e[1;31m\]\u@\h:\[\e[1;34m\]\W\[\e[1;31m\]\$\[\e[0m\] " -else - echo -n "\[\e[1;32m\]\u@\h:\[\e[1;34m\]\W\[\e[1;32m\]\$\[\e[0m\] " -fi)' - -PROMPT_COMMAND=' -EC=$? -if [[ $EC < 0 ]]; then - echo -e "\e[1;31m"EXIT: $EC"\e[0m" -elif [[ $EC > 0 ]]; then - echo -e "\e[1;33m"EXIT: $EC"\e[0m" -fi' - -function settitle { - echo -ne "\033]0;`whoami`@`hostname`:`pwd`\007" -} -case "$TERM" in - xterm*|*rxvt*|*st*) - trap 'settitle' DEBUG - ;; -esac |