dot

packages and services management
Log | Files | Refs | README

commit da11a840712269bfd10ef0753631dea79ca75b4e
parent fbc1393a9a4e31bfe6e21c4bd09841a3dfe26abd
Author: josuah <mail@josuah.net>
Date:   Mon, 24 Oct 2016 00:19:13 -0400

Small changes

Diffstat:
Mbin/buffers | 2++
Mbin/config-build | 2+-
Mshell/.profile | 10+++++++---
Mvim/.vim/vimrc | 4+++-
4 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/bin/buffers b/bin/buffers @@ -47,6 +47,7 @@ path() { local type="$1" + printf %s "$HOME/" ( cd "$HOME" find . -type "$type" ! -path '*/.git/*' ! -name '.git' | @@ -104,6 +105,7 @@ run() # Multi-buffer editor vim ) path="$(path d)" + cd "$path" [ -z "$path" ] && exit 0 ;; diff --git a/bin/config-build b/bin/config-build @@ -158,7 +158,7 @@ r | remove ) ;; u | update ) remove "$2" - download "$2" + download "$2" "$tar" compile "$2" index "$2" ;; diff --git a/shell/.profile b/shell/.profile @@ -101,9 +101,13 @@ alias a='buffers attach' alias r='buffers run' alias v='buffers run $VISUAL' alias t='tmux attach &>/dev/null || tmux new' -alias f='find . -type f ! -path "*/.git/*" | iomenu' -alias d='find . -type d ! -path "*/.git/*" | iomenu' -alias c='cd "$(find . -maxdepth 4 -mindepth 1 -type d | iomenu)"' +alias f='find . -type f ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' +alias d='find . -type d ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' +alias c='cd "$( + find . -maxdepth 4 -mindepth 1 -type d | + sed "s/^\\.\\///" | + iomenu + )"' alias g='grep --color=always' alias myip='curl icanhazip.com' alias lines='find . -name "*.[ch]" | xargs wc -l' diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc @@ -53,7 +53,9 @@ nmap <Leader>t :pwd \| echo '' \| tags \| echo ''<CR>:tag nmap <Leader>" : echo '' \| registers <CR> nmap <Leader>' : echo '' \| marks <CR>:' nmap <Leader>m :silent !make clean<CR>:silent make \| redraw! \| clist<CR> -let find_command = "find -type f ! -path '*/.svn/*' ! -path '*/.git/*' \| fzy" +let find_command = "find -type f ! -path '*/.svn/*' ! -path '*/.git/*' + \\| sed 's/.\\///' + \\| fzy" nmap <Leader>e :e <C-r>=system(find_command)<CR> \| redraw!<CR> " <c>hange <o>ption <...>