aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zprofile
blob: 200d6a89c88f04b820b187e5fbf1ef235bdd6648 (plain)
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
source /etc/zsh/zprofile
#if type "cowfortune" > /dev/null; then
#  cowfortune
#fi

#. /etc/profile.d/vte.sh

#export TERM=xterm-256color

#export EDITOR="emacsclient -c"
export EDITOR="nvim"

export DEFAULT_USER=peter

export QT_QPA_PLATFORMTHEME=qt5ct
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=0

export MTP_NO_PROBE="1"

export XDG_CONFIG_HOME="$HOME/.config"


# Android SDK
export ANDROID_HOME="$HOME/.local/share/android-sdk"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin:$PATH"

# bin
export PATH="$HOME/.bin:$PATH"

# Go
if type "go" > /dev/null; then
  export PATH="$HOME/go/bin:$PATH"
  export GOPATH=$(go env GOPATH)
fi

# Rust
if type "rustc" > /dev/null; then
  export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
  export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
fi

# Node
if type "npm" > /dev/null; then
  export PATH="$HOME/.node_modules/bin:$PATH"
  export npm_config_prefix=~/.node_modules
fi

# Ruby
if type "ruby" > /dev/null; then
  export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
fi

# Aliases
alias open=xdg-open