Commit 14f58b03 authored by Karel Hanák's avatar Karel Hanák
Browse files

bashrc: added prompt initialization, disabled systemd colorized output generation


Signed-off-by: Karel Hanák's avatarKarel Hanák <karel.hanak@iqrf.org>
parent 65e0e520
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1="\[\e]0;\u@\h: \w\a\]$PS1"
# check if terminal uses colors
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# set colors for terminal
if [ "$color_prompt" === yes ]; then
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='\u@\h:\w\$ '
unset color_prompt
# update propmpt path
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
......@@ -16,6 +36,7 @@ alias cp='cp -i'
alias mv='mv -i'
export PATH="$PATH:/usr/sbin:/bin:/sbin"
export SYSTEMD_COLORS=0
# Set locale
#export LC_ALL=en_US.UTF-8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment