+++ /dev/null
-alias ls="ls --color=auto"
-
--- /dev/null
+alias ls="ls --color=auto"
+
+++ /dev/null
-# /etc/systemd/system/sytemd-hibernate.service.d/60-poweroff-on-failure.conf
-# is bypassed by pure "systemctl hibernate", so only allow wrap with poweroff
-alias hibernate_safe="command systemctl hibernate || systemctl poweroff"
-systemctl () {
- local MSG="Use 'hibernate_safe' instead."
- [ "$@" = "hibernate" ] && echo "${MSG}" && return 1
- command systemctl "$@"
-}
--- /dev/null
+# /etc/systemd/system/sytemd-hibernate.service.d/60-poweroff-on-failure.conf
+# is bypassed by pure "systemctl hibernate", so only allow wrap with poweroff
+alias hibernate_safe="command systemctl hibernate || systemctl poweroff"
+systemctl () {
+ local MSG="Use 'hibernate_safe' instead."
+ [ "$@" = "hibernate" ] && echo "${MSG}" && return 1
+ command systemctl "$@"
+}
+++ /dev/null
-alias hibernate_safe="sudo /bin/sh -lc hibernate_safe"
-sudo() {
- local MSG="Use 'hibernate_safe' instead."
- [ "$1 $2" = "systemctl hibernate" ] && echo "${MSG}" && return 1
- command sudo "$@"
-}
--- /dev/null
+alias hibernate_safe="sudo /bin/sh -lc hibernate_safe"
+sudo() {
+ local MSG="Use 'hibernate_safe' instead."
+ [ "$1 $2" = "systemctl hibernate" ] && echo "${MSG}" && return 1
+ command sudo "$@"
+}
include msg
link_home() {
- local LOOP_ALIASFILES=\
-'for FILE in ${HOME}/.aliases_etc.*; do . "${FILE}"; done'
+ local LOOP_PROFILES='for FILE in ${HOME}/.profile.*; do . "${FILE}"; done'
local PATH_PROFILE="${HOME}/${FNAME_PROFILE}"
for DIRNAME in any "$1"; do
local PATH_SKEL="${PATH_REPO}/home/${DIRNAME}"
done
msg 'Augmenting user %s …' "${FNAME_PROFILE}"
# test ensures idempotency
- grep -qxF "${LOOP_ALIASFILES}" "${PATH_PROFILE}" 2>/dev/null\
- || printf '\n%s\n' "${LOOP_ALIASFILES}" >> "${PATH_PROFILE}"
+ grep -qxF "${LOOP_PROFILES}" "${PATH_PROFILE}" 2>/dev/null\
+ || printf '\n%s\n' "${LOOP_PROFILES}" >> "${PATH_PROFILE}"
}