From bac7296bb38bb46b51e4fd70c5fe234f2a58d553 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 21 Jan 2025 08:31:56 +0100 Subject: fix for multiple platform --- .profile | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to '.profile') 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 -- cgit v1.2.3