dot

packages and services management
Log | Files | Refs | README

commit 99c32b2aab8974d2d73d786255db18a492f321c7
parent 1b1d50b5551c453ecf03fcb3db87ebd1cd6fa489
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Thu,  9 Mar 2017 21:41:38 +0100

Editor is now 'ex'

Diffstat:
M.profile | 15++++++++-------
Mbin/play | 12++++++++----
2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/.profile b/.profile @@ -1,10 +1,6 @@ # Shell configuration for any POSIX shells -# Prevents to be run twice per session -[ "$PROFILE" ] && return 0 || PROFILE='1' - - # build(1) package manager runtime variables [ "$(dirname "$(readlink ~/.profile)")/bin/build" ] && . "$(dirname "$(readlink ~/.profile)")/bin/build" @@ -20,13 +16,18 @@ export EMAIL='mail@josuah.net' export MAIL="$HOME/mail/INBOX" # default commands -export EDITOR='vi' VISUAL='vi' -export PAGER='less' MANPAGER='less -R' DVTM_PAGER='less -R' +export EDITOR='ex' +export VISUAL='vi' +export PAGER='less' +export MANPAGER='less -R' +export DVTM_PAGER='less -R' # prompt export PS1='$( [ "$?" -gt 0 ] && color="1" || if git rev-parse 2>/dev/null - then [ "$(git status -s)" ] && color="3" || color="2" + then + [ "$(git status -s)" ] && color="3" || + [ "$(git )" ] && color="2" fi [ "$SSH_CONNECTION" ] && host=" $(hostname)" diff --git a/bin/play b/bin/play @@ -1,7 +1,11 @@ # play all music from directories and files passed as argument with mplayer +IFS=' +' -for path in "$@" -do - find "$path" -type f -name '*.flac' | sort -done | xargs mplayer +mplayer $( + for path in "$@" + do + find "$path" -type f -name '*.flac' | sort + done +)