-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
57 lines (45 loc) · 1.3 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
57
#
# ~/.bashrc
#
# If not running interactively, don't do anything
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
exitstatus()
{
if [[ $? == 0 ]]; then
echo ':)'
else
echo ':('
fi
}
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias pacman='sudo pacman'
alias vim='nvim'
alias nv='env -u WAYLAND_DISPLAY neovide'
alias sleep='hyprctl dispatch dpms off DP-1 && hyprctl dispatch dpms off DP-2'
export NVIM=/home/rongfei/.config/nvim
export ALAC=/home/rongfei/.config/alacritty
export PS1='\
`if [[ $? -gt 0 ]]; then printf "\[\033[01;31m\]:("; else printf "\[\033[01;32m\]:)"; fi` \
\[\e[0;38;5;42m\]\u \
\[\e[0;38;5;75m\]\w \
\[\e[0;38;5;214m\]$(git branch 2>/dev/null | grep '"'"'^*'"'"' | colrm 1 2) \
\[\e[0m\]\$\[\e[0m\] '
source /usr/share/nvm/init-nvm.sh
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/anaconda/etc/profile.d/conda.sh" ]; then
. "/opt/anaconda/etc/profile.d/conda.sh"
else
export PATH="/opt/anaconda/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
export WLR_NO_HARDWARE_CURSORS=1