-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.bashrc
More file actions
46 lines (33 loc) · 1.63 KB
/
.bashrc
File metadata and controls
46 lines (33 loc) · 1.63 KB
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
42
43
44
45
46
#!/usr/bin/env bash
# Ubuntu: find and uncomment the following line in ~/.bashrc:
#force_color_prompt=yes
# Bash settings
[ -f ~/.dotfiles/bash/aliases ] && . ~/.dotfiles/bash/aliases
[ -f ~/.dotfiles/bash/colors ] && . ~/.dotfiles/bash/colors
[ -f ~/.dotfiles/bash/paths ] && . ~/.dotfiles/bash/paths
[ -f ~/.dotfiles/bash/prompts ] && . ~/.dotfiles/bash/prompts
# ignoredups: causes lines matching the previous history entry to not be saved
# ignorespace: lines which begin with a space character are not saved in the
# history list
# ignoreboth
HISTCONTROL=ignoreboth
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
shopt -s globstar
# 256 colors in terminal
export TERM='xterm-256color'
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects
source /usr/local/bin/virtualenvwrapper.sh
fi
# Fix SSH auth socket location so agent forwarding works with tmux and VS Code
export SSH_AUTH_SOCK=$HOME/.ssh/auth_sock
[ `which pyenv` ] && eval "$(pyenv init -)"
[ `which pyenv` ] && eval "$(pyenv virtualenv-init -)"
[ `which rbenv` ] && eval "$(rbenv init -)"
[ `which colorls` ] && source $(dirname $(gem which colorls))/tab_complete.sh
NEOFETCH_ASCII=`[ -f $HOME/.config/neofetch/ascii.local ] && echo "--ascii $HOME/.config/neofetch/ascii.local"`
[ `which neofetch` ] && neofetch $NEOFETCH_ASCII
[ `which fortune` ] && [ `which lolcat` ] && fortune | lolcat # :)