Xinqi Bao's Git

minor update
[dotfiles.git] / .bashrc
1 #
2 # ~/.bashrc
3 #
4
5 # If not running interactively, don't do anything
6 [[ $- != *i* ]] && return
7
8 alias ls='ls --color=auto'
9 alias ll='ls --color=auto -lhrt'
10 alias vim='nvim'
11 alias vimdiff='nvim -d'
12
13 export EDITOR=nvim
14 export BROWSER=firefox
15 export PATH=$HOME/tool:$PATH
16 export PS1="[\[\e[36;1m\]\u@\h \[\e[32;1m\]\w\[\e[m\]]\[\e[33m\](\$(git branch 2>/dev/null | grep '^*' | colrm 1 2))\n\[\e[m\]~~~>\$ "
17 export TERM=xterm-256color
18
19 ulimit -c unlimited
20 [ -f ~/.fzf.bash ] && source ~/.fzf.bash
21 export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'"
22
23 <<COMMENT
24 export proxy_url=http://localhost:1080
25 export http_proxy=$proxy_url
26 export https_proxy=$proxy_url
27 export HTTP_PROXY=$proxy_url
28 export HTTPS_PROXY=$proxy_url
29 COMMENT
30
31 if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
32 exec startx
33 fi