dot

packages and services management
Log | Files | Refs | README

commit 7ba167f9c92c636f346a97d9f704701a6608ff27
parent 4fd9d83d10f95d91cba34f30d313a241e61d06e2
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu,  3 Aug 2017 10:22:33 +0200

Using .profile instead of rc.  All other config goes to */profile.

Diffstat:
Mex-vi/profile | 2+-
Riomenu/io.1 -> iomenu/man/io.1 | 0
Drc | 21---------------------
Mshell/.profile | 28+++++++++++++++++++---------
Rshell/version.1 -> shell/man/version.1 | 0
Rshell/www.1 -> shell/man/www.1 | 0
Mshell/profile | 20+++++++++-----------
7 files changed, 29 insertions(+), 42 deletions(-)

diff --git a/ex-vi/profile b/ex-vi/profile @@ -1,4 +1,4 @@ -TERMCAP='linux|st-256color|screen-256color|tmux-256color|xterm-256color' \ +TERMCAP='linux|st-256color|screen-256color|tmux-256color|xterm-256color \ :do=^J:co#80:li#24:cl=50\E[;H\E[2J: \ :le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A: \ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m: \ diff --git a/iomenu/io.1 b/iomenu/man/io.1 diff --git a/rc b/rc @@ -1,21 +0,0 @@ -export ROOT="$HOME" - -export PKG="$ROOT/pkg" -export OPT="$ROOT/opt" -export SRC="$ROOT/src" -export GIT="$ROOT/git" -export VAR="$ROOT/var" - -export PATH="$ROOT/bin:$PATH" -export MANPATH="$ROOT/man:$MANPATH" -export C_INCLUDE_PATH="$ROOT/include" -export LIBRARY_PATH="$ROOT/.local/lib" -export LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" - -for bin in "$PKG"/*/bin -do [ -d "$bin" ] && export PATH="$bin:$PATH" -done - -for profile in "$PKG"/*/profile -do [ -f "$profile" ] && . "$profile" -done diff --git a/shell/.profile b/shell/.profile @@ -1,11 +1,21 @@ -. "$HOME/pkg/rc" +export ROOT="$HOME" -export NAME='Josuah Demangeon' -export TZ='Europe/Paris' -export PAGER=less MANPAGER=less -export NICK='josuah' -export MAIL="$VAR/mail/INBOX" -export EMAIL='mail@josuah.net' +export PKG="$ROOT/pkg" +export OPT="$ROOT/opt" +export SRC="$ROOT/src" +export GIT="$ROOT/git" +export VAR="$ROOT/var" -command -v rlwrap && LESSEDIT='rlwrap ex +%lm %f' || LESSEDIT='ed' -export EDITOR=less VISUAL=less LESSEDIT +export PATH="$ROOT/bin:$PATH" +export MANPATH="$ROOT/man:$MANPATH" +export C_INCLUDE_PATH="$ROOT/include" +export LIBRARY_PATH="$ROOT/.local/lib" +export LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" + +for bin in "$PKG"/*/bin +do [ -d "$bin" ] && export PATH="$bin:$PATH" +done + +for profile in "$PKG"/*/profile +do [ -f "$profile" ] && . "$profile" +done diff --git a/shell/version.1 b/shell/man/version.1 diff --git a/shell/www.1 b/shell/man/www.1 diff --git a/shell/profile b/shell/profile @@ -10,15 +10,13 @@ PS3='... ' alias cl='printf "\033[H\033[2J"' -# iomenu - -alias j='fg "%$(jobs | iomenu | sed -r "s/.([0-9]*).*/\1/")"' -alias f='find . ! -path "*/.git/*" -type f | iomenu -p file' -alias d='find . ! -path "*/.git/*" -type d | iomenu -p directory' -alias c='cd "$(find "$HOME" -type d | sort | iomenu -p cd)"' -alias p='p=$(io-ps)' - - -# fix for ex-vi - export TERMCAP="$TERM_CAP" +export NAME='Josuah Demangeon' +export TZ='Europe/Paris' +export PAGER=less MANPAGER=less +export NICK='josuah' +export MAIL="$VAR/mail/INBOX" +export EMAIL='mail@josuah.net' + +command -v rlwrap > /dev/null && EDITOR='rlwrap ex' || EDITOR='ex' +export EDITOR=$EDITOR VISUAL=$VISUAL