-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
87 lines (73 loc) · 2.61 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh
#XDG
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"
export HISTFILE="${XDG_STATE_HOME}/bash/history"
export ANDROID_HOME="$HOME/Android"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
export PSQL_HISTORY="$XDG_DATA_HOME/psql_history"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
export BUN_INSTALL="$HOME/.bun"
export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
export SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/pythonrc"
# Default programs
export EDITOR="nvim"
export VISUAL="nvim"
export TERMINAL="wezterm"
export TERMINAL_OPEN="$TERMINAL start --cwd"
export TERMINAL_RUN="$TERMINAL start --"
export STATUSBAR="waybar"
export BROWSER="firefox"
export READER="zathura"
export FILE="joshuto"
export PAGER="moar"
export CHROME_EXECUTABLE="chromium"
export DIFFPROG="nvim -d"
# Paths
export GOPATH="$HOME/.go"
PATH="$PATH:$GOPATH/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/.local/share/cargo/bin"
PATH="$PATH:$HOME/.npm_global/bin"
PATH="$PATH:$HOME/.local/share/gem/ruby/3.0.0/bin"
PATH="$PATH:$HOME/nRF52/gcc-arm/bin"
PATH="$PATH:/snap/bin"
PATH="$PATH:/usr/local/go/bin"
PATH="$PATH:/opt/flutter/bin"
PATH="$PATH:$BUN_INSTALL/bin"
export PATH
# Projects
export GBT_PROJECTS="$HOME/GBT/Projects"
export LOCAL_BINARIES="$HOME/.local/bin/"
export PERSONAL_PROJECTS="$HOME/Projects"
export SCRIPTS="$HOME/.scripts"
# Configs
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export BSP_LAYOUT_ROOT="$HOME/Applications/bsp-layout/src"
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export QT_STYLE_OVERRIDE="gtk2"
export ZSH_CONFIGS="$HOME/.config/zsh"
export TASKRC="$HOME/.config/task/config"
export ZEPHYR_SDK_INSTALL_DIR="$HOME/GBT/zephyr/sdk/zephyr-sdk-0.15.2"
# export socket for ssh-agent
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# source aliases
[ -f $HOME/.aliases ] && source "$HOME/.aliases"
# Kill ssh-agent on logout [only run when first sourcing the system at boot]
if ! xset q &>/dev/null; then
trap 'test -n "$SSH_AUTH_SOCK" && eval `/usr/bin/ssh-agent -k`' 0
fi
. "$HOME/.cargo/env"