# If not running interactively, don't do anything
[[ -z "$PS1" ]] && return
+echo
+echo $PS1
+
cd ~
set -o vi
# Use 'help shopt' to see the documentation for the given options
+shopt -s checkwinsize
shopt -s histappend
shopt -s nocaseglob
shopt -s cdspell
export MANPAGER='less'
# Set prompt
+PS1='\[\033]0;${USER}@${HOSTNAME}:${PWD}\007\]' # terminal title
+
if [[ -z "$MSYS2_PS1" ]]; then
- PS1='${debian_chroot:+($debian_chroot)}' # debian
-else
- PS1='\[\033]0;$PWD\007\]' # terminal title in msys2
+ PS1="$PS1"'${debian_chroot:+($debian_chroot)}' # debian
fi
+PS1="$PS1"'\[\033]0;${USER}@${HOSTNAME}:${PWD}\007\]' # terminal title
PS1="$PS1"'\[\033[01;32m\]' # change color
PS1="$PS1"'\u@\h' # user@host
PS1="$PS1"'\[\033[00m\]' # change color