-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
44 lines (34 loc) · 1.45 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
42
43
44
# Nothing to see here — Everything's in .bash_profile
NPM_PACKAGES="${HOME}/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath`
# command
unset MANPATH
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
XDG_CURRENT_DESKTOP=sway
### Disable ctrl-s sending XOFF
stty ixany
stty ixoff -ixon
export PATH="$PATH:$HOME/.bin:$HOME/.cargo/bin"
# npm
PATH="$NPM_PACKAGES/bin:$PATH"
# add yarn
export PATH="$HOME/.yarn/bin:$PATH"
# tj/n
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).
# Go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
if [ -f "$HOME/custom_env" ]; then source "$HOME/custom_env"; fi
[ -f "$HOME/.fzf.bash" ] && source "$HOME/.fzf.bash"
# bash completion from brew install bash-completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
# kubectl completion
# hash kubectl && source <(kubectl completion bash)
# git completion
# `$_` takes last parameter of previous command
test -f ~/.git-completion.bash && . $_
# The next line updates PATH for the Google Cloud SDK.
if [ -f "$HOME/google-cloud-sdk/path.bash.inc" ]; then source "$HOME/google-cloud-sdk/path.bash.inc"; fi
if [ -f "$HOME/google-cloud-sdk/completion.bash.inc" ]; then source "$HOME/google-cloud-sdk/completion.bash.inc"; fi
# The next line enables shell command completion for gcloud.