forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
52 lines (41 loc) · 1.28 KB
/
.profile
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
#!/usr/bin/env bash
# Decomposed into multiple files
for file in ~/.{prompt,exports,aliases,workrc}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# Use FZF in Bash with Ctrl-T or **. Requires: 'apt-get install fzf'
#
# Linux
if [ -d /usr/share/doc/fzf ]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
source /usr/share/doc/fzf/examples/completion.bash
fi
# Load completions (bash, git, etc)
# Additional completions:
# $ npm completion > /usr/share/bash-completion/completions/npm
# $ node --completion-bash > /usr/share/bash-completion/completions/node
#
# Linux
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
. /usr/share/bash-completion/completions/git
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# On mac, load brew path
if [ -f /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Used for node and npm
# http://git.io/n-install-repo
export N_PREFIX="$HOME/n";
[[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
# Rust cargo
. "$HOME/.cargo/env"
# Deno
export DENO_INSTALL="/Users/gabriel.vivas/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
# Python pipx
export PATH="$PATH:/Users/gabriel.vivas/.local/bin"