summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-21 08:31:56 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-21 08:31:56 +0100
commitbac7296bb38bb46b51e4fd70c5fe234f2a58d553 (patch)
tree84cf6cb71eb8a483f31483761a5ba2cf54e14296 /.profile
parent351a23a8b81766d7aba3bfb469f049348d13d2ec (diff)
fix for multiple platform
Diffstat (limited to '.profile')
-rw-r--r--.profile29
1 files changed, 22 insertions, 7 deletions
diff --git a/.profile b/.profile
index acb8299..c643930 100644
--- a/.profile
+++ b/.profile
@@ -1,10 +1,25 @@
# ~/.profile
-PATH=~/bin:$PATH:~/go/bin
+case $(uname -s) in
+(Darwin)
+ PATH=~/bin:~/mu/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/tcl-tk/bin:$PATH:~/go/bin:~/.cargo/bin:~/.pyenv/versions/2.7.18/bin:~/.local/bin
+ export REPLYTO='mvertes@free.fr'
+ export LANG=en_US.UTF-8
+ if [ -z "$SSH_AUTH_SOCK" ] ; then
+ eval `ssh-agent -s`
+ ssh-add
+ fi
+ . "/opt/homebrew/etc/profile.d/bash_completion.sh"
+ tabs -4
+ export HOMEBREW_NO_ANALYTICS=1
+ ;;
+(Linux)
+ PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin
+ export XDG_RUNTIME_DIR=/run/user/$(id -u)
+ ;;
+esac
-[ "${SHELL##*/}" = bash ] && . ~/.bashrc
-
-# Last action: auto start X11 when logged on first console
-#case $HOSTNAME in
-#([sS]wift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;;
-#esac
+case $SHELL in
+(*/ash) export ENV=~/.shrc ;;
+(*/bash) . ~/.bashrc ;;
+esac