diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-04 07:43:52 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-04 07:43:52 +0530 |
commit | 2986fd613865b4f2ea7f43a9925afc6eb68d4607 (patch) | |
tree | 84c1fbda7770434a1225b28d1c7e15870a70d0a1 | |
parent | 9fd3208247e5c37d7453f2bb33acd09120fddec6 (diff) |
bashrc PS1 bold } fix + tab indentation
-rw-r--r-- | .bashrc | 41 |
1 files changed, 20 insertions, 21 deletions
@@ -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" |