summaryrefslogtreecommitdiffstats
path: root/.profile
blob: d091318b9ee87620cf8039a1566c706c04758b47 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# .profile
#      _
#     | | ___   ___
#  _  | |/ _ \ / _ \
# | |_| | (_) |  __/
#  \___/ \___/ \___|

# $FreeBSD: releng/12.1/share/skel/dot.profile 337497 2018-08-08 19:24:20Z asomers $
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#


# These are normally set through /etc/login.conf.  You may override them here
# if wanted.
# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
# BLOCKSIZE=K;	export BLOCKSIZE

# Setting TERM is normally done through /etc/ttys.  Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# TERM=xterm; 	export TERM

# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV

# PATH
export PATH="${HOME}/.local/bin:${PATH}"

# Apps
export EDITOR='nvim'
export VISUAL='nvim'
export PAGER='less'
export TERMINAL='alacritty'
export BROWSER='firefox'
export READER='zathura'
export FILE='vifm'

# UTF-8
export CHARSET='UTF-8'
export LANG='en_US.UTF-8'
export LC_COLLATE='C'

# xdg
export XDG_DATA_HOME="$HOME"/.local/share
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_RUNTIME_DIR=/tmp
export XDG_MUSIC_DIR="$HOME"/mu

# Cleanup
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android
export ANDROID_AVD_HOME="$XDG_DATA_HOME"/android/
export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/
export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export MACHINE_STORAGE_PATH="$XDG_DATA_HOME"/docker-machine
export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc
export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
export STACK_ROOT="$XDG_DATA_HOME"/stack
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export VIMINIT='if !has('nvim') | source "$XDG_CONFIG_HOME/vim/vimrc" | endif'
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XINITRC="$XDG_CONFIG_HOME"/x11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/x11/xserverrc

# ccache
export CCACHE_PATH='/usr/bin:/usr/local/bin:/usr/local/llvm11/bin'
export CCACHE_DIR='/var/cache/ccache-jozan'
export CCACHE_LOGFILE='/var/log/ccache.log'

# Apps config
export FZF_DEFAULT_COMMAND='ag -g "" --ignore dotfiles-bsd'
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export LESS="-R"
export LESSHISTFILE='-'
export MANPAGER="less -R -M +Gg"
export MPD_HOST="${HOME}/.config/mpd/socket"
export RUSTFLAGS="-L /usr/local/lib"

# Query terminal size; useful for serial lines.
# if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi

# Display a random cookie on each login.
# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi