dot

packages and services management
Log | Files | Refs | README

commit db9be3f7aaca3a0b1f1a053b58152e2e9440f2fd
parent ba0123c55a3cb1222fb848f836e1231680caaa47
Author: josuah <mail@josuah.net>
Date:   Thu, 27 Oct 2016 08:26:47 -0400

Few fixes

Diffstat:
Mbin/buffers | 7++++---
Mbin/music | 15+++++++++------
Mvim/.vim/vimrc | 4++--
3 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/bin/buffers b/bin/buffers @@ -14,6 +14,7 @@ Usage: buffers COMMAND COMMAND r[run] [CMD] Run CMD in an abduco session a[ttach] Interactively prompt buffer to attach, display. + s[ession] Start a wrapper session to start other buffers in. ' NL=' ' TAB=' ' @@ -141,7 +142,7 @@ run() name="$(printf '%s' "$name" | sed 'y/\//!/')" # Run new or existing abduco session with this name - TERM=screen ABDUCO="$cmd" abduco -e '^z' -A "$name" $cmd $opt + TERM='screen' ABDUCO="$cmd" abduco -e '^z' -A "$name" $cmd $opt } # @@ -172,7 +173,7 @@ attach() printf '\033]0;%s\007' "$name" | sed 'y/!/\//' # Attach to the session. - [ "$name" ] && TERM=screen ABDUCO="$name" abduco -e '^z' -a "$name" + [ "$name" ] && TERM='screen' ABDUCO="$name" abduco -e '^z' -a "$name" } # @@ -182,7 +183,7 @@ session() { if [ -z "$SESSION" ] then - SESSION='session' TERM='screen' abduco -e '^\' -A session + SESSION='session' TERM='screen' abduco -e '^\' -A 'session' fi } diff --git a/bin/music b/bin/music @@ -1,15 +1,18 @@ -# * -# --.-. , , ,--- , ,--. +# . . * +# |\ /| , , ,--- , ,--. # | | | | | `--. | | -# ' ' ' `--` ---' ' `--' 2016-10-07 +# ' ' `--` ---' ' `--' 2016-10-26 #------------------------------------------------------------------------------- # Prompt for a music to play with ffplay cd "$HOME/Music" -while : -do find . -mindepth 1 -type f -follow | sed 's/^.\///' | iomenu | { +find . -mindepth 1 -type f -follow | + sort | + sed 's/^.\///; s/\// > /; y/_/ /' | + iomenu | + sed ' s/ > /\//; y/ /_/' | + { read track [ "$track" ] && mplayer "$track" } -done diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc @@ -16,8 +16,8 @@ set autoindent copyindent " Indentation set laststatus=0 showcmd showmode " Statusline set ruler rulerformat=%40(%1*%f%=%l:%-3v\ %P%) " Ruler set smartcase ignorecase showmatch incsearch " Searching -set list listchars=tab::\ ,trail:.,nbsp:.,extends:>,precedes:< " Listchars -set fillchars=vert:│,fold:─,diff:─ " Fillchars +set list listchars=tab:│\ ,trail:-,nbsp:-,extends:>,precedes:< " Listchars +set fillchars=vert:│,fold:─,diff:─,stl:\ ,stlnc:\ " Fillchars set number numberwidth=1 cursorline nowrap " Interface set scrolloff=3 " Scroll set backupdir=~/.cache/vim// directory=~/.cache/vim// undodir=~/.cache/vim//