-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.profile
45 lines (35 loc) · 833 Bytes
/
.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
#!/bin/sh
export EDITOR="code -w"
PATH=/usr/local/sbin:$PATH
PATH="$HOME/bin:$PATH"
eval "$(/opt/homebrew/bin/brew shellenv)"
s () {
cd "$HOME/src/$1" || return
}
d () {
cd "$HOME/Desktop/$1" || return
}
alias ..="cd .."
alias ...="cd ../.."
# homebrew
if [ -d /opt/homebrew ]
then
export CPATH="/opt/homebrew/include"
export LDFLAGS="-L/opt/homebrew/lib"
export CPPFLAGS="-I/opt/homebrew/include"
export LIBRARY_PATH="/opt/homebrew/lib"
fi
# deno
export DENO_INSTALL_ROOT="$HOME/.deno"
if [ -d "$DENO_INSTALL_ROOT" ]
then
PATH="$DENO_INSTALL_ROOT/bin:$PATH"
fi
# cargo
. "$HOME/.cargo/env"
# obsidian
export OBSIDIAN_VAULT_ID="69f2a33bbeb12d4b"
vault () {
_path=$(jq ".vaults.\"$OBSIDIAN_VAULT_ID\".path" --raw-output < "$HOME/Library/Application Support/obsidian/obsidian.json")
cd "$_path" || return
}