From 2986fd613865b4f2ea7f43a9925afc6eb68d4607 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Thu, 4 Aug 2022 07:43:52 +0530 Subject: bashrc PS1 bold } fix + tab indentation --- .bashrc | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.bashrc b/.bashrc index 0f3e901..979702b 100644 --- a/.bashrc +++ b/.bashrc @@ -12,8 +12,7 @@ alias ls='ls --color=auto' -export PS1="\[$(tput bold)\]\[$(tput setaf 1)\]{\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[\033[38;5;10m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[$(tput sgr0)\]\[$(tput setaf 1)\]}\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" - +export PS1="\[$(tput bold)\]\[$(tput setaf 1)\]{\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h\[$(tput setaf 5)\] \W\[$(tput setaf 2)\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[$(tput setaf 1)\]}\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" #auto cd ## Allows you to cd into directory merely by typing the directory name. @@ -45,30 +44,30 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # Load aliases alias \ v="vim" \ - sv="sudo vim" \ + sv="sudo vim" \ r="ranger" \ ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'\ - sr="sudo ranger" \ + sr="sudo ranger" \ space="ncdu" \ - h="cat $HISTFILE|fzf|xclip -sel c" \ - sha="shasum -a 256" \ - untar="tar -zxvf" \ - untar2="tar -xvf" \ - cp="cp -iv" \ - mv="mv -iv" \ - mkd="mkdir -pv" + h="cat $HISTFILE|fzf|xclip -sel c" \ + sha="shasum -a 256" \ + untar="tar -zxvf" \ + untar2="tar -xvf" \ + cp="cp -iv" \ + mv="mv -iv" \ + mkd="mkdir -pv" \ myip="curl ipinfo.io/ip && echo """ \ rm="trash -v" \ - listdel="trash-list" \ - restore="trash-restore" \ - empty="trash-empty" - sitedir="cd /var/www/" + listdel="trash-list" \ + restore="trash-restore" \ + empty="trash-empty" \ + sitedir="cd /var/www" \ gitdir="cd /var/git" #git alias \ - g1="git add ." \ - g2="git commit -S -m" \ - g3="git push origin HEAD --force" \ - gs="git status" \ - gd="git diff --staged" \ - glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" + g1="git add ." \ + g2="git commit -S -m" \ + g3="git push origin HEAD --force" \ + gs="git status" \ + gd="git diff --staged" \ + glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" -- cgit v1.2.3