From dd6107ec0e955a91c26e314ac0b38a27039a500d Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Mon, 9 Jul 2018 19:57:54 +0200 Subject: [PATCH] Remove q alias --- .bash_aliases | 1 - .bashrc | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 7bd734a..955f8b6 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -33,7 +33,6 @@ alias rd='rmdir' # My shortcuts alias h='history' -alias q='exit' alias e='ranger-cd' alias o='rifle' alias open='xdg-open &>/dev/null' diff --git a/.bashrc b/.bashrc index 813e386..f25a0ef 100644 --- a/.bashrc +++ b/.bashrc @@ -3,10 +3,14 @@ # 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 @@ -21,12 +25,13 @@ export PAGER='less' 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 -- 2.43.0