-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
executable file
·41 lines (27 loc) · 1.25 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export HISTCONTROL=ignoreboth
export HISTSIZE=2000000
alias exit='history -a && exit'
eval `dircolors ~/.dircolors`
# Fix tmux color issues (force 256 colors)
alias tmux='tmux -2'
alias ls='ls -G'
export GIT_PS1_SHOWDIRTYSTATE=1
# User specific aliases and functions
export PS1="\n\[\e[1;32m\]\H \[\e[37m\]| \[\e[31m\]\w \[\e[37m\]| \[\e[1;35m\]\t \[\e[4;35m\]\d\n\[\e[0;32m\]\u\[\e[1;37m\] ( \[\e[1;36m\]\! : \#\[\e[1;37m\] ) \[\e[0;39m\]"
### Used for blog post to clean up username/hostname. Saving in case of need ##
#export PS1="\n \[\e[1;32m\]herein \[\e[37m\]| \[\e[31m\]\w \[\e[37m\]| \[\e[1;35m\]\t \[\e[4;35m\]\d\n\[\e[0;32m\] echoet\[\e[1;37m\] ( \[\e[1;36m\]\! : \#\[\e[1;37m\] ) \$(__git_ps1 '%s ')\$ \[\e[0;39m\]"
export UAEDITOR=vim
export EDITOR=vim
export VISUAL=vim
#calendar with today highlighted - http://www.shell-fu.org/lister.php?id=210
alias tcal='cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed '\''s/./#/g'\'') /"'
# Add npm installed binaries to path
PATH=$PATH:~/Devel/nodejs/npm/bin
source ~/.local/dotfiles/.bashrc
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash