summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorAndrew Guschin <guschin.drew@gmail.com>2022-04-04 09:43:26 +0400
committerAndrew Guschin <guschin.drew@gmail.com>2022-04-04 09:43:26 +0400
commit2b24616570009e1f693cb2a267dc2429193140b0 (patch)
tree8f08e617285b257a8524110fdb944a1872b480a1 /.profile
parent595a36327df589169e0a443676ae3d166242397a (diff)
Moved vim config to separate repo and reorganized PATH exports in .profile
Diffstat (limited to '.profile')
-rw-r--r--.profile20
1 files changed, 17 insertions, 3 deletions
diff --git a/.profile b/.profile
index 31c65e9..c73f55c 100644
--- a/.profile
+++ b/.profile
@@ -61,14 +61,28 @@ export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME/bundle"
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle"
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME/bundle"
+if [ -d "$GEM_HOME/ruby" ]; then
+ PATH="$PATH:$(du $GEM_HOME/ruby/*/bin | cut -f2 | paste -s -d ':' -)"
+fi
+export PATH="$PATH:$GEM_HOME/bin"
# Rust
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
+export PATH="$PATH:$CARGO_HOME/bin"
# Go
export GOPATH="$XDG_DATA_HOME/go"
+export PATH="$PATH:$GOPATH/bin"
+
+# Python
+# On Linux python executables installed with pip should be in ~/.local/bin
+if [ "$(uname)" = "Darwin" ]; then
+ _pypaths="$(du $HOME/Library/Python/*/bin | cut -f2 | paste -s -d ':' -)"
+ export PATH="$PATH:$_pypaths"
+ unset _pypaths
+fi
-export PATH="$PATH:/opt/homebrew/bin"
-export PATH="$PATH:$CARGO_HOME/bin:$GOPATH/bin:$GEM_HOME/bin"
-export PATH="$PATH:$(du $GEM_HOME/ruby/*/bin | cut -f2 | paste -s -d ':' -)"
+if [ "$(uname)" = "Darwin" ]; then
+ export PATH="$PATH:/opt/homebrew/bin"
+fi