about summary refs log tree commit diff stats
path: root/profile
diff options
context:
space:
mode:
authorCase Duckworth2024-05-30 12:47:11 -0500
committerCase Duckworth2024-05-30 12:47:11 -0500
commit22bc1e1879da0d99e5e1d79b10742b8cc9fd0521 (patch)
treecd813c6d8bfeebe83901b2d749ce97f1231dd547 /profile
downloaddots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.tar.gz
dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.zip
Initial commit
Diffstat (limited to 'profile')
-rw-r--r--profile62
1 files changed, 62 insertions, 0 deletions
diff --git a/profile b/profile new file mode 100644 index 0000000..3625f86 --- /dev/null +++ b/profile
@@ -0,0 +1,62 @@
1# ~/.profile -*- sh -*-
2
3. /etc/profile
4
5# History
6mkdir -p ~/.history
7export HISTFILE=~/.history/sh
8export HISTSIZE=1000000000000
9
10# Environment variables
11export ENV="$HOME/.shrc"
12export PATH="$HOME/bin:$PATH"
13export LC_ALL=en_US.UTF-8
14export CDPATH=:~
15export SUDO=/usr/bin/doas
16export EXINIT='set ai ic sm ts=8'
17export MISC="$HOME/.misc"
18export EDITOR="$(which ed)"
19export VISUAL="$(which vi)"
20
21export XDG_CONFIG_HOME="$HOME/.config"
22export XDG_CACHE_HOME="$HOME/.cache"
23export XDG_DATA_HOME="$HOME/.local/share"
24export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
25export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"
26
27export XDG_DESKTOP_DIR="$HOME/"
28export XDG_DOCUMENTS_DIR="$HOME/doc"
29export XDG_DOWNLOAD_DIR="$HOME/tmp"
30export XDG_MUSIC_DIR="$HOME/music"
31export XDG_PICTURES_DIR="$HOME/img"
32export XDG_PUBLICSHARE_DIR="$HOME/.local/share/public"
33export XDG_TEMPLATES_DIR="$HOME/.local/templates"
34export XDG_VIDEOS_DIR="$HOME/video"
35
36if test -z "$XDG_RUNTIME_DIR"
37then export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
38fi
39if ! test -d "$XDG_RUNTIME_DIR"
40then
41 mkdir "$XDG_RUNTIME_DIR"
42 chmod 0700 "$XDG_RUNTIME_DIR"
43fi
44
45installedp() { which "$1" >/dev/null 2>&1; }
46
47# SSH
48if installedp keychain
49then eval $(keychain --quiet --eval --dir "$XDG_RUNTIME_DIR/" --agents ssh)
50elif installedp ssh-agent
51then eval $(ssh-agent -s)
52fi
53
54# RLWRAP
55if installedp rlwrap
56then export RLWRAP_HOME=$XDG_DATA_HOME/rlwrap
57fi
58
59# Start X on login
60# if test /dev/tty1 = "$(tty)" && test -z "$DISPLAY"
61# then startx
62# fi