-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
executable file
·24 lines (21 loc) · 1.21 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
[ -n "$JESIN_PROFILE_WAS_SOURCED" ] && return
JESIN_PROFILE_WAS_SOURCED=1
{
alias cp='cp -i' mv='mv -i'
hash vim && export VISUAL='vim -p'
[ -z "$VISUAL" ] || export EDITOR="$VISUAL"
[ -n "${LESS+x}" ] || export LESS=RX
[ -n "$DISPLAY" ] || export DISPLAY=':0'
[ -n "$BROWSER" ] || export BROWSER="$(command -v chromium):$(command -v firefox):$(command -v midori):$(command -v konqueror):$(command -v epiphany):$(command -v luakit):$(command -v surf):$(command -v elinks):$(command -v links):$(command -v w3m)"
[ -n "$NPROC" ] || export NPROC="$(nproc || getconf _NPROCESSORS_ONLN || grep -c '^processor\>' </proc/cpuinfo || printf %s 3)"
[ -n "$OMP_NUM_THREADS" ] || export OMP_NUM_THREADS="$NPROC"
[ -n "$MAKEFLAGS" ] || export MAKEFLAGS="-j$NPROC"
#[ -n "$GHCRTS" ] || export GHCRTS=-N
[ -z "$PACMAN" ] && hash pacmatic && export PACMAN=pacmatic
[ -n "$TMUX_TMPDIR" ] || [ -z "$XDG_RUNTIME_DIR" ] || export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
[ -n "$XDG_CACHE_HOME" ] || export XDG_CACHE_HOME="$HOME/.cache"
[ -n "$XDG_CONFIG_HOME" ] || export XDG_CONFIG_HOME="$HOME/.config"
[ -n "$XDG_DATA_HOME" ] || export XDG_DATA_HOME="$HOME/.local/share"
} >/dev/null 2>&1
[ -r ~/.profile.local ] && . ~/.profile.local