X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/blobdiff_plain/875c81c3638e1b2218d8b3b6fbd5494cbe5b1a5f..809fae34e618497ddee3d8028e7addafc5846df2:/.bashrc?ds=sidebyside diff --git a/.bashrc b/.bashrc index d837918..e697659 100644 --- a/.bashrc +++ b/.bashrc @@ -5,10 +5,35 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return -alias ls='ls --color=auto' +export PATH=${HOME}/.local/opt/node/bin:${PATH} +export PATH=${HOME}/.local/bin:${PATH} +export PATH=${HOME}/tool:${PATH} -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\]~~~>\$ " +alias ls='ls --color=auto -G' +alias ll='ls --color=auto -G -lhrt' +alias vim='nvim' +alias vimdiff='nvim -d' -export EDITOR=vim +export EDITOR=nvim +export BROWSER=firefox +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\]~~~>\$ " export TERM=xterm-256color + +ulimit -c unlimited + +#export proxy_url=http://localhost:1080 +#export http_proxy=$proxy_url +#export https_proxy=$proxy_url +#export HTTP_PROXY=$proxy_url +#export HTTPS_PROXY=$proxy_url + +# Set up fzf key bindings and fuzzy completion +eval "$(fzf --bash)" +export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'" + +[ -f ${HOME}/.cargo/env ] && . ${HOME}/.cargo/env + +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi