-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
25 lines (20 loc) · 1.15 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
####################################
# __ __
#| |--.---.-.-----| |--.----.----.
#| _ | _ |__ --| | _| __|
#|_____|___._|_____|__|__|__| |____|
####################################
# Prompt
if [ -n "$SSH_CONNECTION" ]; then
export PS1="\n\[$(tput setaf 1)\]┌─╼ \[$(tput setaf 7)\][\w]\n\[$(tput setaf 1)\]\$(if [[ \$? == 0 ]]; then echo \"\[$(tput setaf 1)\]└────╼ \[$(tput setaf 7)\][ssh]\"; else echo \"\[$(tput setaf 1)\]└╼ \[$(tput setaf 7)\][ssh]\"; fi) \[$(tput setaf 7)\]"
else
export PS1="\n\[$(tput setaf 1)\]┌─╼ \[$(tput setaf 7)\][\w]\n\[$(tput setaf 1)\]\$(if [[ \$? == 0 ]]; then echo \"\[$(tput setaf 1)\]└────╼\"; else echo \"\[$(tput setaf 1)\]└╼\"; fi) \[$(tput setaf 7)\]"
fi
trap 'echo -ne "\e[0m"' DEBUG
# colorscheme for fzf
export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS' --color fg:7,bg:-1,hl:6,fg+:6,bg+:-1,hl+:6 --color info:2,prompt:1,spinner:5,pointer:5,marker:3,header:8'
#for bat theme
export BAT_THEME="base16"
# pidswallow fix
[ -n "$DISPLAY" ] && command -v xdo >/dev/null 2>&1 && xdo id > /tmp/term-wid-"$$"
trap "( rm -f /tmp/term-wid-"$$" )" EXIT HUP