-
Notifications
You must be signed in to change notification settings - Fork 0
/
_env
78 lines (61 loc) · 1.66 KB
/
_env
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
#! /hint/sh
: "
${HOSTNAME:=$(hostname)}
${OLDPWD=$HOME/.local}
"
export \
GIT_FIX_PWD \
GIT_DIR \
BAT_PAGER="less -RF" \
BAT_CONFIG_PATH=/etc/bat.conf \
PASSWORD_STORE_DIR=~/.local/0/GG/pass/ \
TERMINAL=konsole \
KISS_PATH=~/.local/0/gh/denisde4ev/repo/personal \
XKB_DEFAULT_LAYOUT='us(carpalx)' \
\
PATHseparator=: \
PATHSEP=/ \
\
NEW_LINE='
' \
TAB_CHAR=' ' \
;
alias command.='command >/dev/null -v'
if command. most; then
export PAGER=most
if command. less; then
export MANPAGER=less
fi
elif command. less; then
export PAGER=less
fi
if command. bat; then
if command. ___manpager_bat; then
export MANPAGER=___manpager_bat
else
# NOTE: not all man implementanions support quoting in MANPAGER var
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi
fi
# : "${NEW_LINE:=$'\n'}"
# XKB_DEFAULT_LAYOUT -> for river WM # https://github.com/ifreund/river/issues/254
# MOZ_USE_XINPUT2=1 -> firefox support touchscreen # I put in in /etc/environment
# PATHSEP='/' -> a path separator used in mine scripts, for busybox-w32.sh is PATHSEP='/\'
# # PATHseparator=$( PATH=1:2 ; printf %c "${PATH#1}" ) # expected Windows to use ';'
case $TERM in
*xterm*) export EDITOR=${EDITOR-micro};;
linux|screen*) export EDITOR=${EDITOR-nano};;
*) export EDITOR=${EDITOR-micro};;
esac
# note $new_line is from "$B"/_core
# some enviromnent aliases, (for now all are for PAGER var fix)
alias \
su='PAGER= MANPAGER= \su' \
doas='PAGER= MANPAGER= \sudo -S ' \
sudo='PAGER= MANPAGER= \doas ' \
9='PAGER= MANPAGER=less \9 ' \
gh='PAGER=less \gh' \
HELP='MANPAGER=most \HELP' \
systemctl='PAGER= systemctl' \
;
# git='PAGER=less \git' \ moved to "$B"/_loadable/git.sh