dot

packages and services management
Log | Files | Refs | README

commit 38ca48bb508d063a81f2025c98b6ef7615682a1f
parent e22b84696611e413c52c6a7a3d6a6c9f722742b7
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  7 Feb 2018 14:00:16 +0100

[refactor] only variables in .profile

Diffstat:
Mdaemon/geomyidae | 4++--
Adaemon/ssh-agent | 9+++++++++
Mdot/profile | 6------
Mskel/crontab | 14++++++++------
4 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/daemon/geomyidae b/daemon/geomyidae @@ -8,5 +8,5 @@ exec geomyidae \ -b "${path}" \ -p "${port}" \ -h "${host}" \ - 1> "${LOG}/geomyidae" \ - 2> "${LOG}/geomyidae" & + 1>> "${LOG}/geomyidae" \ + 2>> "${LOG}/geomyidae" & diff --git a/daemon/ssh-agent b/daemon/ssh-agent @@ -0,0 +1,9 @@ +#!/bin/sh -e + +mkdir -p "${SSH_AUTH_SOCK%/*}" +rm -f "${SSH_AUTH_SOCK}" + +ssh-agent \ + -a "${SSH_AUTH_SOCK}" \ + 1>> "${LOG}/ssh-agent" \ + 2>> "${LOG}/ssh-agent" & diff --git a/dot/profile b/dot/profile @@ -42,12 +42,6 @@ export LESSHISTFILE='-' export SSH_AUTH_SOCK="${RUN}/ssh-agent" export EXINIT='set ruler' -pgrep -x ssh-agent || { - mkdir -p "${SSH_AUTH_SOCK%/*}" - rm -f "${SSH_AUTH_SOCK}" - ssh-agent -a "${SSH_AUTH_SOCK}" -} - export PS1='$([ "${?}" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' export PS1="${PS1}$(printf '\033]0;%s\a' '${PWD}') ${SSH_TTY:+$(uname -n)}$([ "$(whoami)" = 'root' ] && printf '#' || printf '$') " diff --git a/skel/crontab b/skel/crontab @@ -1,4 +1,4 @@ -# min hour day month weekday command +# min hour day month wkday command #*/15 * * * * mpop && mfilter @@ -6,8 +6,10 @@ #*/15 * * * * update-agenda -#10 6 * * * back rsync "$HOME/back/1" -#20 6 * * * back rsync "$HOME/back/2" -#30 6 * * * back rsync "$HOME/back/3" -#40 6 * * * back rsync "$HOME/back/4" -#50 6 * * * back rsync "$HOME/back/5" +#10 6 * * * back rsync "${HOME}/back/1" +#20 6 * * * back rsync "${HOME}/back/2" +#30 6 * * * back rsync "${HOME}/back/3" +#40 6 * * * back rsync "${HOME}/back/4" +#50 6 * * * back rsync "${HOME}/back/5" + +#* * * * * cd "${HOME}/srv" && bin/stat