dot

packages and services management
Log | Files | Refs | README

commit 6926aa7826b0b5057019b3a10ec16bb75a80b637
parent 14b8a3f7f17a24bbaf089f0357d6bab56a6eb190
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Mon,  7 Aug 2017 21:30:43 +0200

simpler scripts, less interdependents

use less -> vi -> ex as a 3 modes editor

Diffstat:
Mabduco/bin/abduco-list | 2+-
Miomenu/bin/io | 2+-
Diomenu/bin/io-irc | 1-
Diomenu/bin/io-man | 3---
Riomenu/bin/io-url -> shell/bin/url | 0
Mshell/profile | 12++++++------
6 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/abduco/bin/abduco-list b/abduco/bin/abduco-list @@ -12,7 +12,7 @@ touch "$HOME/.abduco/names" if [ $# = 1 ] then name="$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" - set -- "$EDITOR" "$1" + set -- $EDITOR "$1" elif [ $# -gt 1 ] then diff --git a/iomenu/bin/io b/iomenu/bin/io @@ -15,7 +15,7 @@ touch "$HOME/var/cache/io" -type d -exec printf '%s/\n' {} + -o \ -print 2> /dev/null | sort | -awk -v VAR="$VAR" -v MAIL="${MAIL%/*}" ' +awk -v MAIL="${MAIL%/*}" ' $0 ~ VAR "/irc/.*/$" { ircv[ircc++] = $0 diff --git a/iomenu/bin/io-irc b/iomenu/bin/io-irc @@ -1 +0,0 @@ -cd "$1" && less out diff --git a/iomenu/bin/io-man b/iomenu/bin/io-man @@ -1,3 +0,0 @@ -# just open a man page - -mandoc -a "$1" | ul | less -R diff --git a/iomenu/bin/io-url b/shell/bin/url diff --git a/shell/profile b/shell/profile @@ -1,8 +1,6 @@ PS1='$( - [ $? = 0 ] && - printf "\033[32;1m───\033[m" || - printf "\033[31;1m───\033[m" -) ' + [ $? = 0 ] || printf "\033[31;1m '"'"'\033[m\n\r" +)━━━ ' PS2=' : ' PS3=' : ' @@ -13,8 +11,10 @@ alias cl='printf "\033[H\033[2J"' export TERMCAP="$TERM_CAP" export NAME='Josuah Demangeon' export TZ='Europe/Paris' -export PAGER=less MANPAGER=less -export EDITOR=vi VISUAL=vi export NICK='josuah' export MAIL="$HOME/var/mail/INBOX" export EMAIL='mail@josuah.net' + +export EDITOR='less -N' VISUAL='less -N' PAGER=less MANPAGER=less +command -v rlwrap > /dev/null && LESSEDIT='rlwrap' || LESSEDIT='' +export LESSEDIT="$LESSEDIT vi -c %lm %f"