Blame common/home/midipix/.bashrc

4721ce
# proceed only in interactive mode
4721ce
[[ "$-" != *i* ]] && return
5d8ce8
5d8ce8
# PS1
5d8ce8
if [ "$TERM" = xterm ]; then
5d8ce8
	export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
5d8ce8
else
5d8ce8
	export PS1='\n\w \$ '
5d8ce8
fi
5d8ce8
5d8ce8
# aliases
5d8ce8
if [ -x /bin/dircolors ]; then
5d8ce8
	alias ls='ls --color=auto'
5d8ce8
	alias grep='grep --color=auto'
5d8ce8
	alias fgrep='fgrep --color=auto'
5d8ce8
	alias egrep='egrep --color=auto'
5d8ce8
fi
5d8ce8
5d8ce8
alias ll='ls -alF'
5d8ce8
alias la='ls -A'
5d8ce8
alias l='ls -CF'
5d8ce8
5d8ce8
# prepend $HOME/.local/bin: to PATH as needed
5d8ce8
IFS_SAVED=${IFS}; IFS=':';
5d8ce8
ADD=$HOME/.local/bin:
5d8ce8
5d8ce8
for path_element in $PATH; do
5d8ce8
	if [ "$ADD" = "$path_element:" ]; then
5d8ce8
		ADD=
5d8ce8
	fi
5d8ce8
done
5d8ce8
5d8ce8
export PATH="$ADD$PATH"
5d8ce8
5d8ce8
IFS=${IFS_SAVED}