45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
### ~/.bashrc #######################
|
|
#####################################
|
|
## eric at ewpt3ch.com ##############
|
|
## dotfiles on github.com ewpt3ch ###
|
|
#####################################
|
|
|
|
### test for interactive shell
|
|
if [[ $- != *i* ]] ; then
|
|
# Shell is non-interactive. Be done now!
|
|
return
|
|
fi
|
|
|
|
#Shell Variables
|
|
PATH="/home/ewpt3ch/bin:/home/ewpt3ch/tmux:${GOPATH}:${PATH}:./:"
|
|
export EDITOR=nvim
|
|
export PAGER=less
|
|
export GOPATH="/home/ewpt3ch/go"
|
|
|
|
#Create dirs for things that won't themselves
|
|
mkdir -p /tmp/makepkg
|
|
|
|
#source /etc/profile.d/bash-completion.sh
|
|
|
|
#source ~/bin/npm_completion
|
|
|
|
#bring in aliases for arch
|
|
source ~/.dotfiles/archalias.bash
|
|
#alias
|
|
alias vim='nvim'
|
|
alias nano='nano -w'
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias fgrep='fgrep --color=auto'
|
|
alias egrep='egrep --color=auto'
|
|
#create cache-dir for chrome
|
|
mkdir -p /tmp/ewpt3ch-cache
|
|
eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519)
|
|
#export NVM_DIR="/home/ewpt3ch/.nvm"
|
|
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
#[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
|
|
# Only load Liquid Prompt in interactive shells, not from a script or from scp
|
|
[[ $- = *i* ]] && source ~/liquidprompt/liquidprompt
|