+++ /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
+_dot_profile_dot_prompt() {
+ local COLOR_NUMBER=2
+ local COLOR_ON
+ local COLOR_OFF
+ COLOR_ON="$(tput setaf "${COLOR_NUMBER}" 2>/dev/null)$(tput bold 2>/dev/null)"
+ COLOR_OFF="$(tput sgr0 2>/dev/null)"
+ # Bash confuses the line length when not told not to count escape
+ # sequences. PS3 is printed verbatim by "select", so it must get the
+ # unwrapped codes.
+ PS3="${COLOR_ON}select: ${COLOR_OFF}"
+ if [ -n "${BASH:-}" ]; then
+ COLOR_ON="\[${COLOR_ON}\]"
+ COLOR_OFF="\[${COLOR_OFF}\]"
+ fi
+ PS1="${COLOR_ON}[\D{%Y-%m-%d/%H:%M:%S/%Z} \u@\h:\w]\$ ${COLOR_OFF}"
+ PS2="${COLOR_ON}> ${COLOR_OFF}"
+ PS4="${COLOR_ON}+ ${COLOR_OFF}"
+}
+_dot_profile_dot_prompt
+unset -f _dot_profile_dot_prompt
--- /dev/null
+[ -z "${SSH_AGENT_PID}" ] && eval $(ssh-agent) > /dev/null && ssh-add -q
+++ /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
-_dot_profile_dot_prompt() {
- local COLOR_NUMBER=2
- local COLOR_ON
- local COLOR_OFF
- COLOR_ON="$(tput setaf "${COLOR_NUMBER}" 2>/dev/null)$(tput bold 2>/dev/null)"
- COLOR_OFF="$(tput sgr0 2>/dev/null)"
- # Bash confuses the line length when not told not to count escape
- # sequences. PS3 is printed verbatim by "select", so it must get the
- # unwrapped codes.
- PS3="${COLOR_ON}select: ${COLOR_OFF}"
- if [ -n "${BASH:-}" ]; then
- COLOR_ON="\[${COLOR_ON}\]"
- COLOR_OFF="\[${COLOR_OFF}\]"
- fi
- PS1="${COLOR_ON}[\D{%Y-%m-%d/%H:%M:%S/%Z} \u@\h:\w]\$ ${COLOR_OFF}"
- PS2="${COLOR_ON}> ${COLOR_OFF}"
- PS4="${COLOR_ON}+ ${COLOR_OFF}"
-}
-_dot_profile_dot_prompt
-unset -f _dot_profile_dot_prompt
+++ /dev/null
-[ -z "${SSH_AGENT_PID}" ] && eval $(ssh-agent) > /dev/null && ssh-add -q
include msg
link_home() {
- local LOOP_PROFILES='for FILE in ${HOME}/.profile.*; do . "${FILE}"; done'
+ local LOOP_PROFILES='for FILE in ${HOME}/.profile.d/*; do . "${FILE}"; done'
local PATH_PROFILE="${HOME}/${FNAME_PROFILE}"
for DIRNAME in any "$1"; do
local PATH_SKEL="${PATH_REPO}/home/${DIRNAME}"