Xinqi Bao's Git

chore(coc): tune completion and diagnostic settings
[dotfiles.git] / .bashrc
1 #
2 # ~/.bashrc
3 #
4
5 # If not running interactively, don't do anything
6 [[ $- != *i* ]] && return
7
8 export PATH=${HOME}/.local/opt/node/bin:${PATH}
9 export PATH=${HOME}/.local/bin:${PATH}
10 export PATH=${HOME}/tool:${PATH}
11
12 alias ls='ls --color=auto -G'
13 alias ll='ls --color=auto -G -lhrt'
14 alias vim='nvim'
15 alias vimdiff='nvim -d'
16
17 export EDITOR=nvim
18 export BROWSER=firefox
19
20 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\]~~~>\$ "
21 export TERM=xterm-256color
22
23 ulimit -c unlimited
24
25 #export proxy_url=http://localhost:1080
26 #export http_proxy=$proxy_url
27 #export https_proxy=$proxy_url
28 #export HTTP_PROXY=$proxy_url
29 #export HTTPS_PROXY=$proxy_url
30
31 # Set up fzf key bindings and fuzzy completion
32 eval "$(fzf --bash)"
33 export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'"
34
35 [ -f ${HOME}/.cargo/env ] && . ${HOME}/.cargo/env
36
37 if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
38 exec startx
39 fi