Skip to content

Instantly share code, notes, and snippets.

@decabyte
Created September 3, 2019 23:23
Show Gist options
  • Save decabyte/4c1056ed76628926159ba088c3853462 to your computer and use it in GitHub Desktop.
Save decabyte/4c1056ed76628926159ba088c3853462 to your computer and use it in GitHub Desktop.
Bashrc.bash
### CUSTOM ###
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
# display environment
export DISPLAY=:0
export TERM=xterm-256color
# alacritty
source $HOME/extra/alacritty/extra/completions/alacritty.bash
# linuxbrew
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
# go
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$HOME/extra/go/bin:$PATH"
# powerline
export POWERLINE_ROOT="$HOME/.local/lib/python3.5/site-packages"
export POWERLINE_COMMAND=powerline
export POWERLINE_CONFIG_COMMAND=powerline-config
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. $POWERLINE_ROOT/powerline/bindings/bash/powerline.sh
# fzf
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--bind='ctrl-o:execute(code {})+abort'"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# pyenv
export PYENV_ROOT="$HOME/extra/pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
# cquery
export PATH="/home/lyft/extra/cquery/build/release/bin:$PATH"
# aliases
alias cat='bat'
alias preview="fzf --preview 'bat --color \"always\" {}'"
alias du='ncdu --color dark -x -rr --exclude .git --exclude node_modules'
alias duw='ncdu --color dark -x --exclude .git --exclude node_modules'
alias help='tldr'
alias lll='exa --header --long --group --git'
alias htop='TERM=screen htop'
alias powersave="sudo cpupower frequency-set --governor powersave"
alias performance="sudo cpupower frequency-set --governor performance"
# functions
function pyenv_enable() {
if command -v pyenv 1> /dev/null 2>&1
then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
}
function reset_bash() {
source ~/.bashrc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment