dot

packages and services management
Log | Files | Refs | README

commit cf28b34dc8aadf2540cc04905ed73004ba6fe9c7
parent e2602766de4b1917acdebde3ebde098942a93898
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Wed,  5 Apr 2017 15:02:36 +0200

cleanup

Diffstat:
M.profile | 6++----
Dabduco/config.h | 22----------------------
Dbin/ed-date | 9---------
Mbin/tty-theme | 8++++----
Rbin/sam-man -> bin/woman | 0
5 files changed, 6 insertions(+), 39 deletions(-)

diff --git a/.profile b/.profile @@ -18,7 +18,7 @@ export MAIL="$HOME/mail/INBOX" export NAME='Josuah Demangeon' EMAIL='mail@josuah.net' TZ='Europe/Paris' # default commands -export EDITOR='mg' VISUAL='mg' +export EDITOR='vis' VISUAL='vis' export PAGER='less' MANPAGER='less -R' DVTM_PAGER='less -R' export BROWSER='firefox' @@ -28,12 +28,10 @@ export BROWSER='firefox' PS1='$( error="$?" - [ -z "${PWD##$HOME*}" ] && pwd="~${PWD#$HOME}" || pwd="$PWD" - printf "\033[?6c" printf "\033]0;%s\007" "$pwd" - printf "\n\033[0;1;30m%s\033[m%s" "$pwd" "$(git-status)" + printf "\n\033[0;1;30m%s\033[m%s" "$PWD/" "$(git-status)" [ "$SSH_CONNECTION" ] && printf " %s" "$(hostname)" [ "$ABDUCO" ] && printf " %s" "$ABDUCO" [ "$error" -gt 0 ] && printf " \033[1;31m%s\033[m" "$error" diff --git a/abduco/config.h b/abduco/config.h @@ -1,22 +0,0 @@ -/* default command to execute if non is given and $ABDUCO_CMD is unset */ -#define ABDUCO_CMD "dvtm-status" - -/* default detach key, can be overriden at run time using -e option */ -static char KEY_DETACH = CTRL('\\'); - -/* redraw key to send a SIGWINCH signal to underlying process - * (set to 0 to disable the redraw key) */ -static char KEY_REDRAW = 0; - -/* Where to place the "abduco" directory storing all session socket files. - * The first directory to succeed is used. */ -static struct Dir { - char *path; /* fixed (absolute) path to a directory */ - char *env; /* environment variable to use if (set) */ - bool personal; /* if false a user owned sub directory will be created */ -} socket_dirs[] = { - { .env = "ABDUCO_SOCKET_DIR", false }, - { .env = "HOME", true }, - { .env = "TMPDIR", false }, - { .path = "/tmp", false }, -}; diff --git a/bin/ed-date b/bin/ed-date @@ -1,9 +0,0 @@ -# update date at the end of sime line or add one to it. - -IFS=' -' - -read -r line; -line="${line%[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]}" - -printf "%s%$((80 - ${#line}))s\n" "$line" "$(date +"${1-%Y-%m-%d}")" diff --git a/bin/tty-theme b/bin/tty-theme @@ -295,16 +295,16 @@ F ffffff datahill -0 080008 -1 c33027 +0 080011 +1 cc1122 2 22cc66 3 edb54c 4 195465 5 4e5165 6 33a08d -7 99ccaa +7 aaccbb 8 407060 -9 d26939 +9 ff6644 A 44ff99 B ffdd88 C 337799 diff --git a/bin/sam-man b/bin/woman