-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
44 lines (36 loc) · 1.29 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
#!/bin/bash
#
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
if [[ -f /etc/profile.d/bash-completion.sh ]] ; then
. /etc/profile.d/bash-completion.sh
fi
shopt -s histappend
shopt -s autocd
shopt -s checkwinsize
shopt -s dotglob
# set -o noclobber
# set -o vi
HISTCONTROL=ignoreboth
HISTSIZE=100000
HISTFILE=~/.histfile
PROMPT_COMMAND="history -a"
export HISTSIZE HISTFILE PROMPT_COMMAND
export GIT_REPOS=${HOME}/.git_repos
export WINEDLLOVERRIDES='winemenubuilder.exe=d'
# export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
# export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
# export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp, -Dswing.aatext=true'
PATH="$PATH:$HOME/.node_modules/bin"
# PATH="$PATH:$HOME/go/bin"
. ~/.alias
# thanksgiving
# echo -e "\e[0;3$(( RANDOM * 6 / 32767 + 1 ))m观自在菩萨,行深般若波罗蜜多时,照见五蕴皆空,度一切苦厄。\n\e[0m"
echo -e "\e[0;3$(( RANDOM * 6 / 32767 + 1 ))mChop wood, carry water.\n\e[0m"
# PS1
source ~/.git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUPSTREAM="auto"
PS1='$(__git_ps1 "\[\e[38;5;70m\]%s ")\[\e[1;32m\]\u@\h\[\e[1;34m\] \w \nλ\[\e[0m\] '