summaryrefslogtreecommitdiff
path: root/.profile
blob: cdc28e36d421214b85cdbd678bb0c48780144618 (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
# ~/.profile

export OS=$(~/bin/os)

case $OS in
(arch|alpine)
	PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin
	export XDG_RUNTIME_DIR=/run/user/$(id -u)
	;;
(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
	;;
(termux)
	PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin
	;;
esac

case $SHELL in
(*/ash)  export ENV=~/.shrc ;;
(*/bash) type -t p 2>/dev/null || . ~/.bashrc ;;
esac

[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true