aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xzsh/.zprofile39
1 files changed, 30 insertions, 9 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile
index 20bd592..ef099e8 100755
--- a/zsh/.zprofile
+++ b/zsh/.zprofile
@@ -1,7 +1,10 @@
-cowfortune
+if type "cowfortune" > /dev/null; then
+ cowfortune
+fi
#. /etc/profile.d/vte.sh
+export TERM=xterm-256color
export EDITOR=emacsclient
@@ -13,18 +16,36 @@ export QT_SCALE_FACTOR=0
export MTP_NO_PROBE="1"
+
+# Android SDK
#export ANDROID_HOME=/home/peter/Android/Sdk
#export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin:$PATH"
-export PATH="$HOME/go/bin:$PATH"
+# bin
export PATH="$HOME/.bin:$PATH"
-export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
-export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
-
-export PATH="$HOME/.node_modules/bin:$PATH"
-export npm_config_prefix=~/.node_modules
-
+# Go
+if type "go" > /dev/null; then
+ export PATH="$HOME/go/bin:$PATH"
+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
-export TERM=xterm-256color