-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkshrc
More file actions
29 lines (20 loc) · 756 Bytes
/
mkshrc
File metadata and controls
29 lines (20 loc) · 756 Bytes
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
export HOSTNAME="$(hostname)"
# TODO: git prompt, only reading from .git/...
PS4='[$EPOCHREALTIME] '
PS1=$'\001\r''${|
\typeset e=$?
(( e )) && REPLY+="$e|"
REPLY+=${USER}@${HOSTNAME%%.*}:
\typeset d=${PWD:-?}/ p=~; [[ $p = ?(*/) ]] || d=${d/#$p\//\~/}
d=${d%/}; \typeset m=${%d} n p=...; (( m > 0 )) || m=${#d}
(( m > (n = (COLUMNS/3 < 7 ? 7 : COLUMNS/3)) )) && d=${d:(-n)} || p=
REPLY+=$p$d
\return $e
} '"$(if (( USER_ID )); then print \$; else print \#; fi) "
export PS1 PS4
if [ $TERM -eq st-256color ]; then export TERM=xterm; fi
export MANPATH=/usr/share/man:/usr/local/man:$HOME/share/man
alias ls='ls -F'
# OPAM configuration
. /home/julian/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
export SBCL_HOME=$HOME/lib/sbcl