2020-11-04 02:03:20 +03:00
|
|
|
#!/bin/sh
|
2024-02-21 15:47:10 +03:00
|
|
|
#
|
|
|
|
# Profile of Surdeus.
|
2024-07-11 10:28:52 +03:00
|
|
|
#
|
|
|
|
reload-profile(){
|
|
|
|
. $PROFILE
|
|
|
|
}
|
2020-11-04 02:03:20 +03:00
|
|
|
|
2024-07-11 21:02:16 +03:00
|
|
|
sctl(){
|
|
|
|
systemctl $@
|
|
|
|
}
|
|
|
|
|
|
|
|
jctl(){
|
|
|
|
journalctl $@
|
|
|
|
}
|
|
|
|
|
2024-07-12 18:40:54 +03:00
|
|
|
export-loop(){
|
2020-11-04 02:03:20 +03:00
|
|
|
# Chore, because I'm lazy to type "export" so many times.
|
|
|
|
# Standard "export" command takes arguments
|
|
|
|
# from variables from the start, but I want to
|
|
|
|
# use other variables in definition for next of them.
|
2024-04-06 17:43:22 +03:00
|
|
|
while test -n "$1" ; do
|
2020-11-04 02:03:20 +03:00
|
|
|
# Doing until we have arguments.
|
|
|
|
value="$(eval echo $2)"
|
|
|
|
name="$1"
|
|
|
|
export "$name"="$value"
|
|
|
|
shift 2
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2024-07-12 18:40:54 +03:00
|
|
|
source-if-exist() {
|
|
|
|
for i in $@ ; do
|
|
|
|
if test -r "$i" ; then
|
|
|
|
. "$i"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2024-04-06 17:43:22 +03:00
|
|
|
if test "$OS" != "Windows_NT" ; then
|
2023-08-30 11:13:45 +03:00
|
|
|
PATH="$HOME/exe:$HOME/.local/bin:$PATH"
|
|
|
|
fi
|
2020-11-04 02:03:20 +03:00
|
|
|
# Standard variables.
|
2024-07-12 18:40:54 +03:00
|
|
|
export-loop \
|
2024-07-11 10:28:52 +03:00
|
|
|
ETC '$HOME/etc' \
|
2020-11-04 02:03:20 +03:00
|
|
|
ENV '$HOME/.shrc' \
|
2022-11-08 21:27:59 +03:00
|
|
|
PROMPT '"; "' \
|
2022-11-13 12:23:06 +03:00
|
|
|
PS1 '"$PROMPT"' \
|
2022-11-21 01:27:52 +03:00
|
|
|
SUDO_PROMPT '"# "' \
|
2024-07-12 18:40:54 +03:00
|
|
|
EDITOR '`bb which nvim vim vi ed`' \
|
|
|
|
VISUAL '$EDITOR' \
|
2020-11-04 02:03:20 +03:00
|
|
|
GIT_EDITOR '$VISUAL' \
|
2024-02-21 15:47:10 +03:00
|
|
|
PAGER '`bb which less more`' \
|
2020-11-04 02:03:20 +03:00
|
|
|
MANPAGER '$PAGER' \
|
2021-12-04 21:57:51 +03:00
|
|
|
\
|
2024-07-11 10:28:52 +03:00
|
|
|
CDHIST '$ETC/cds' \
|
2022-11-08 21:27:59 +03:00
|
|
|
CDHISTMAX '50' \
|
|
|
|
\
|
2024-07-11 10:28:52 +03:00
|
|
|
CMDHIST '$ETC/cmds' \
|
2021-12-14 05:16:32 +03:00
|
|
|
CMDHISTMAX '100' \
|
2020-11-04 02:03:20 +03:00
|
|
|
PROFILE '$HOME/.profile' \
|
2020-11-04 02:24:45 +03:00
|
|
|
ENVDIR '$HOME/env' \
|
2024-07-11 10:28:52 +03:00
|
|
|
SETENV '$ETCsetenv/sh' \
|
|
|
|
LOGIN '$ETC/login/sh' \
|
2021-12-04 21:57:51 +03:00
|
|
|
INDENT '" "'\
|
|
|
|
\
|
|
|
|
GOPATH '$HOME/app/go' \
|
|
|
|
GOBIN '$HOME/exe'\
|
2022-07-29 22:56:51 +03:00
|
|
|
XDG_UTILS_DEBUG_LEVEL '3'\
|
2024-07-11 10:28:52 +03:00
|
|
|
XDG_CONFIG_HOME '$HOME/.config' \
|
2024-07-11 00:39:14 +03:00
|
|
|
GIT 'https://surdeus.su' \
|
2022-10-11 17:52:39 +03:00
|
|
|
PERSONAL_SHELL 'sh' \
|
2024-07-12 00:38:44 +03:00
|
|
|
VIMRC '$HOME/.vimrc'\
|
2024-07-11 00:39:14 +03:00
|
|
|
XKB_DEFAULT_OPTIONS 'caps:escape' \
|
|
|
|
\
|
2024-07-11 01:33:08 +03:00
|
|
|
XCOMPOSER 'river' \
|
2024-07-11 00:39:14 +03:00
|
|
|
XTERMINAL 'wayst' \
|
|
|
|
XRUNNER 'fuzzel' \
|
|
|
|
XBAR 'waybar' \
|
2024-07-12 00:38:44 +03:00
|
|
|
XBLUETOOTH_MANAGER 'blueman-manager' \
|
|
|
|
XOUTPUT_DAEMON 'kanshi' \
|
|
|
|
XSOUND_CONTROL 'pavucontrol' \
|
|
|
|
XFILE_MANAGER 'thunar' \
|
2024-07-12 01:16:25 +03:00
|
|
|
XRESOURCE_MONITOR '$XTERMINAL -e htop' \
|
|
|
|
XCALENDAR '$XTERMINAL -e calcurse' \
|
2024-07-12 18:40:54 +03:00
|
|
|
XPUSH_NOTIFICATION_DAEMON 'dunst' \
|
|
|
|
XNOTIFY 'dunstify' \
|
2024-07-12 01:22:31 +03:00
|
|
|
SSH_ASKPASS ''\
|
2024-07-11 00:39:14 +03:00
|
|
|
|
2024-07-12 18:40:54 +03:00
|
|
|
echo dick
|
|
|
|
source-if-exist "$ETC/script/lf.sh"
|
|
|
|
echo suck
|
2020-11-04 02:24:45 +03:00
|
|
|
test -r $SETENV && . "$SETENV" && setenv profile
|
2020-11-04 02:03:20 +03:00
|
|
|
|
2024-06-23 14:45:24 +03:00
|
|
|
# Visual editor.
|
2024-03-03 23:02:04 +03:00
|
|
|
if which bb ; then
|
2024-06-23 14:45:24 +03:00
|
|
|
ve() {
|
2024-03-03 23:02:04 +03:00
|
|
|
`bb which nvim vim vi` $@
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2022-09-05 18:07:23 +03:00
|
|
|
export GPG_TTY=$(tty)
|
2022-09-06 19:17:21 +03:00
|
|
|
export SSH_TTY=$(tty)
|
2022-09-05 18:07:23 +03:00
|
|
|
|