dot

packages and services management
Log | Files | Refs | README

commit 894973949eb355a28c3089807efe63f4676c04d6
parent a121c7d8acf12e8f4e09ebf9a8c85969f98b1a59
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 19 Dec 2017 19:03:45 +0100

no more ssh-agent script needed

Diffstat:
Rbin/lineart -> bin/io-lineart | 0
Mdaemon/crond | 2+-
Mdaemon/monitor | 2+-
Ddaemon/ssh-agent | 6------
Mdot/config/mblaze/profile | 4++--
Mdot/profile | 23++++++++++++++---------
6 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/bin/lineart b/bin/io-lineart diff --git a/daemon/crond b/daemon/crond @@ -1,3 +1,3 @@ #!/bin/sh -exec crond -f "$HOME/etc/crontab" +exec crond -f "$HOME/.config/crontab" & diff --git a/daemon/monitor b/daemon/monitor @@ -1,4 +1,4 @@ #!/bin/sh mkdir -p "$HOME/var/stat/data" -exec vmstat "${1:-15}" | exec monitor > "$HOME/var/stat/data" & +vmstat "${1:-15}" | monitor > "$HOME/var/stat/data" & diff --git a/daemon/ssh-agent b/daemon/ssh-agent @@ -1,6 +0,0 @@ -#!/bin/sh - -mkdir -p "$(dirname "$SSH_AUTH_SOCK")" -pgrep -qx ssh-agent || rm -f "$SSH_AUTH_SOCK" - -exec ssh-agent -a "$SSH_AUTH_SOCK" diff --git a/dot/config/mblaze/profile b/dot/config/mblaze/profile @@ -1,2 +1,2 @@ -Sendmail: msmtp -Local-Mailbox: mail@josuah.net +Sendmail: msmtp +Local-Mailbox: mail@josuah.net diff --git a/dot/profile b/dot/profile @@ -1,14 +1,15 @@ export NAME="Josuah Demangeon" export TZ="Europe/Paris" export NICK="josuah" + export EMAIL="mail@josuah.net" export MAILTO="$EMAIL" +export MAIL="$HOME/var/mail/mbox" +export MAILDIR="$HOME/var/mail" export EDITOR="edit" VISUAL="edit" export PAGER="less" MANPAGER="less" -export MAIL="$HOME/var/mail/mbox" -export MAILDIR="$HOME/var/mail" export PLAN9="$HOME/.local/src/plan9" export PATH="$HOME/etc/bin:$HOME/.local/bin:$PATH:$PLAN9/bin" export MANPATH="$HOME/etc/man:/usr/share/man:/usr/local/man" @@ -25,16 +26,20 @@ export LC_MESSAGES=en_US.UTF-8 export LC_NUMERIC=en_US.UTF-8 export LC_TIME=en_US.UTF-8 -export ABDUCO_SOCKET_DIR="$HOME/.cache" -export MBLAZE="$HOME/.config/mblaze" - -export LESS="-~R" -export LESSHISTFILE=- - export BLIH="josuah.demangeon@epitech.eu" export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs" export PKG_PATH="https://ftp.fr.openbsd.org/pub/OpenBSD/" +export ABDUCO_SOCKET_DIR="$HOME/.cache" +export MBLAZE="$HOME/.config/mblaze" export SSH_AUTH_SOCK="$HOME/.cache/ssh-agent" +export LESS="-~R" +export LESSHISTFILE=- + +export PS1="${SSH_TTY:+$(uname -n)}% " -PS1="$(printf '\033]0;$PWD $(git-status)\a')${SSH_TTY:+$(uname -n)}% " +pgrep -qx ssh-agent || { + mkdir -p "${SSH_AUTH_SOCK%/*}" + rm -f "$SSH_AUTH_SOCK" + ssh-agent -a "$SSH_AUTH_SOCK" +}