-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
56 lines (50 loc) · 1.25 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[[ $- != *i* ]] && return
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec sway
fi
alias vim=nvim
alias ls='ls --color=auto'
alias py='python3'
alias weather='curl wttr.in'
alias swayprop='~/.config/sway/swayprop.sh'
function gu {
case $1 in
dev)
git config user.name "$name2"
git config user.email "$email2"
eval $(ssh-agent)
ssh-add "$ssh2"
;;
*)
git config user.name "$name1"
git config user.email "$email1"
eval $(ssh-agent)
ssh-add "$ssh1"
;;
esac
}
function __virtualenv_info {
if [[ -n "$VIRTUAL_ENV" ]]; then
venv="${VIRTUAL_ENV##*/}"
else
venv=""
fi
[[ -n "$venv" ]] && echo "(venv:$venv) "
}
VENV="\$(__virtualenv_info)"
PROMPT_COMMAND='__git_ps1 "[\u@\h \w]${VENV}" "\$ "'
export PATH="${PATH}:${HOME}/.local/bin"
export XDG_CACHE_HOME=$HOME/.cache
export TERMINAL=alacritty
export N_PREFIX=$HOME/.n
export PATH=$N_PREFIX/bin:$PATH
export GIT_PS1_SHOWDIRTYSTATE="true"
export GIT_PS1_SHOWSTASHSTATE="true"
export GIT_PS1_SHOWUNTRACKEDFILES="true"
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWCOLORHINTS="true"
(cat ~/.cache/wal/sequences &)
source ~/.ssh/ssh.config
source ~/.cache/wal/colors-tty.sh
source ~/.git-completion.bash
source ~/.git-prompt.sh