Repository navigation
Expand file tree
/
Copy pathbashrc
More file actions
executable file
·72 lines (57 loc) · 1.97 KB
/
Copy pathbashrc
File metadata and controls
executable file
·72 lines (57 loc) · 1.97 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# log every command to ~/.logs
# this isn't working :(
#export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'
# from github mrzool/bash-sensible
# pretty cool repo, there's some great settings in there,
# but needs the latest bash to use them all
if [ -f ~/.sensible.bash ]; then
source ~/.sensible.bash
fi
# Most people think having a fancy bash prompt is a waste of time,
# but have you ever had to search your terminal for the start of a
# command because your prompt is the same colour as the output?
DARKGRAY='\e[1;30m'
LIGHTRED='\e[1;31m'
GREEN='\e[32m'
YELLOW='\e[1;33m'
LIGHTBLUE='\e[1;34m'
RED='\e[31m'
NC='\e[m'
# prompt -> [username]$
PS1='\[\e[1;31m\][\u]\[\e[1;34m\]\$\[\e[0m\] '
# Fix backspace for neovim and iTerm
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' >| $TERM.ti
tic $TERM.ti
export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export NDK_ROOT="${HOME}/android-ndk-r7"
export ANDROID_SDK_ROOT="${HOME}/android-sdk-mac_x86"
export ANDROID_NDK_ROOT="$NDK_ROOT"
export PATH=$PATH:$ANDROID_NDK_ROOT:/usr/local/sbin/:$HOME/neovim/bin:$HOME/bin
export PYTHONSTARTUP=~/.pythonrc
export THEFUCK_ALTER_HISTORY=false
export GOPATH=~/.go
export PGDATA=/usr/local/var/postgres
# private stuff, like homebrew github tokens
[[ -e ~/.tokens ]] && . ~/.tokens
# cool shortcuts
[[ -e ~/.bash_aliases ]] && . ~/.bash_aliases
[[ -e ~/dotfiles/j.sh ]] && . ~/dotfiles/j.sh
# autocompletes
#if [ -f $(brew --prefix)/etc/bash_completion ]; then
# . $(brew --prefix)/etc/bash_completion
#fi
# for f in /usr/local/etc/bash_completion.d/*; do
# source $f
# done
export EDITOR="vi"
[[ -e ~/.fun.sh ]] && . ~/.fun.sh
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
complete -f -X '*.zip' rmzip
. "$HOME/.cargo/env"