dot

packages and services management
Log | Files | Refs | README

commit 0cd5daff1aac18804fbefe70a70ad27e9c8de452
parent 4a3d636a91f7d0088fdc362387fcb6252330ec0f
Author: josuah <mail@josuah.net>
Date:   Fri, 25 Nov 2016 19:39:42 +0100

Only dotfiles, nothing hardcoded

Diffstat:
M.cache/iomenu/history | 13+++++++++++++
M.config/build/iomenu | 2+-
Rdvtm/config.h -> .config/dvtm/config.h | 0
Rdvtm/dvtm-focused-tags.diff.disabled -> .config/dvtm/dvtm-focused-tags.diff.disabled | 0
Rdvtm/dvtm-status -> .config/dvtm/dvtm-status | 0
Rdvtm/dvtm.c-0.14-pertag.diff -> .config/dvtm/dvtm.c-0.14-pertag.diff | 0
Rdvtm/gaps.diff -> .config/dvtm/gaps.diff | 0
Rdwm/config.h -> .config/dwm/config.h | 0
Rdwm/config.mk -> .config/dwm/config.mk | 0
Rdwm/dwm-pertag-6.1.diff -> .config/dwm/dwm-pertag-6.1.diff | 0
Rdwm/dwm-uselessgap-6.1.diff -> .config/dwm/dwm-uselessgap-6.1.diff | 0
Rst/config.h -> .config/st/config.h | 0
Rst/st-alpha-0.6.diff -> .config/st/st-alpha-0.6.diff | 0
M.local/bin/build | 42++++++++++++++++++++++++------------------
M.mbsyncrc | 1+
M.profile | 2+-
M.vim/vimrc | 27++++++++++++++-------------
17 files changed, 54 insertions(+), 33 deletions(-)

diff --git a/.cache/iomenu/history b/.cache/iomenu/history @@ -1,3 +1,16 @@ +[ +7za addpart b +alsamixer +alsamixer -c 1 +aspell-autobuildhash barkdown + +drawk +fzf +grep +io-abduco +io-grep +io-man mmap +iomenu +music vim diff --git a/.config/build/iomenu b/.config/build/iomenu @@ -1,3 +1,3 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/7c22aefd9b7447493f0bdca8c76f89035be2368f.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/11eed973e2ee1c078787397857197dcd85863f08.tar.gz diff --git a/dvtm/config.h b/.config/dvtm/config.h diff --git a/dvtm/dvtm-focused-tags.diff.disabled b/.config/dvtm/dvtm-focused-tags.diff.disabled diff --git a/dvtm/dvtm-status b/.config/dvtm/dvtm-status diff --git a/dvtm/dvtm.c-0.14-pertag.diff b/.config/dvtm/dvtm.c-0.14-pertag.diff diff --git a/dvtm/gaps.diff b/.config/dvtm/gaps.diff diff --git a/dwm/config.h b/.config/dwm/config.h diff --git a/dwm/config.mk b/.config/dwm/config.mk diff --git a/dwm/dwm-pertag-6.1.diff b/.config/dwm/dwm-pertag-6.1.diff diff --git a/dwm/dwm-uselessgap-6.1.diff b/.config/dwm/dwm-uselessgap-6.1.diff diff --git a/st/config.h b/.config/st/config.h diff --git a/st/st-alpha-0.6.diff b/.config/st/st-alpha-0.6.diff diff --git a/.local/bin/build b/.local/bin/build @@ -3,10 +3,10 @@ PROGRAMS="$HOME/Programs" PREFIX="$HOME/.local" -CONFIG="$HOME/.config/build" +CONFIG="$HOME/.config" -help() +usage() { local name description @@ -18,16 +18,18 @@ COMMAND d[ownload] Download PACKAGE's sources i[nstall] Download then install PACKAGE r[emove] Remove build PACKAGE and its sources - u[pdate] Delete, then download and install again PACKAGE + u[pdate] Delete, then download and install PACKAGE again l[ink] Update links from ~${PROGRAMS#$HOME} to ~${PREFIX#$HOME} PACKAGE" - find "$CONFIG" -type f -o -type l | while IFS='' read -r file - do - name="${file#$CONFIG/}" - IFS='' read -r description < "$file" - printf '\t%-12s %s\n' "$name" "${description#\# }" - done | sort + find "$CONFIG/build" -type f -o -type l | + while IFS='' read -r path + do + IFS='' read -r description < "$path" + printf '\t%-12s %s\n' \ + "${path#$CONFIG/build/}" \ + "${description#\#}" + done | sort } | more exit 0 @@ -57,10 +59,12 @@ build() patch -p1 < "$patch" done - [ -f "$CONFIG/$1/config.mk" ] && cp -f "$CONFIG/$1/config.mk" . - [ -f "$CONFIG/$1/config.h" ] && cp -f "$CONFIG/$1/config.h" . - [ -f ./autogen.sh ] && ./autogen.sh - [ -f ./configure ] && ./configure --prefix="$PREFIX" + for file in "$CONFIG/$1/config.mk" "$CONFIG/$1/config.h" + do + [ -h "$file" -o -f "$file" ] && cp -f "$file" . + done + [ -f ./autogen.sh ] && ./autogen.sh + [ -f ./configure ] && ./configure --prefix="$PREFIX" make && make prefix="$PREFIX" PREFIX="$PREFIX" install clean return $? @@ -72,8 +76,8 @@ compile() local name="$1" tar="$2" local PREFIX="$PROGRAMS/$name" - [ ! -f "$CONFIG/$name" ] && error "$2 has no build script" - . "$CONFIG/$name" + [ ! -f "$CONFIG/build/$name" ] && error "$2 has no build script" + . "$CONFIG/build/$name" info "Installing $name" @@ -82,14 +86,15 @@ compile() cd "$PREFIX" && rmdir -p --ignore-fail-on-non-empty * } + download() { local name="$1" tar="$2" local tmp="$(mktemp -u)" [ -d "$PROGRAMS/$name/src" ] && error "$name/src already in $PROGRAMS" - [ ! -f "$CONFIG/$name" ] && error "$2 has no build script" - . "$CONFIG/$name" + [ ! -f "$CONFIG/build/$name" ] && error "$2 has no build script" + . "$CONFIG/build/$name" info "Downloading $tar" @@ -108,6 +113,7 @@ download() rm -rf "$tmp" } + remove() { local name="$1" @@ -159,7 +165,7 @@ main() index '' ;; * | '' ) - help + usage ;; esac diff --git a/.mbsyncrc b/.mbsyncrc @@ -15,4 +15,5 @@ Master :gandi-remote: Slave :gandi-local: Patterns * Create Both +Expunge Both SyncState * diff --git a/.profile b/.profile @@ -34,7 +34,7 @@ export PS1='$( printf "\033[?6c" # status line - printf "\033[K\n%$(stty size | cut -d " " -f 2)s\r%s\033[K\n\033[K" \ + printf "\033[K\n\033[K%$(stty size | cut -d " " -f 2)s\r%s\n\033[K" \ "$(status)" "$(status path "$PWD" git "$PWD")" # prompt character diff --git a/.vim/vimrc b/.vim/vimrc @@ -6,7 +6,7 @@ " Config for vim using vim's features rather than a lot of plugins -" OPTIONS +" Options "------------------------------------------------------------------------------- syntax enable | filetype plugin on | set nocompatible @@ -25,6 +25,7 @@ set laststatus=0 set showcmd set showmode set ruler +set rulerformat=%30(%3m%=%l:%-8(%c%V%)\ %P%) " searching set smartcase @@ -36,7 +37,7 @@ set incsearch set list set listchars=tab:│\ ,trail:-,nbsp:-,extends:>,precedes:< set fillchars=vert:│,fold:─,diff:─,stl:\ ,stlnc:\ -set number numberwidth=1 cursorline nowrap +set number numberwidth=8 cursorline nowrap set scrolloff=3 let &colorcolumn=join(range(81,90),",") @@ -56,7 +57,7 @@ set hidden set showfulltag -" MAPPINGS +" Mappings "------------------------------------------------------------------------------- let mapleader = ' ' @@ -80,22 +81,22 @@ nmap cov :set ve=<C-r>=(&ve =~# "all") ? 'block' : 'all'<CR><CR>:set ve ?<CR> nmap cos :if exists("g:syntax_on") \| sy off \| else \| sy enable \| end<CR> nmap cot :set tw=<C-r>=(&tw != "0" ) ? '0' : '75' <CR> <CR>:set tw ?<CR> -" Editing +" editing nmap [<Leader> mzO<Esc>k`z<C-e> nmap ]<Leader> mzo<Esc>k`z -" Parentheses +" parentheses vmap <Leader>p myomzr\|`zlhr\`ylhr/ -" ABBREVIATIONS +" Abbreviations "------------------------------------------------------------------------------- -iabbrev -_ <Esc>a-<Esc>:set ve=all<CR>v080lhr-:set ve=block<CR>A -iabbrev =_ <Esc>a=<Esc>:set ve=all<CR>v080lhr=:set ve=block<CR>A +iabbrev -_ <Esc>80a-<Esc>a +iabbrev =_ <Esc>80a=<Esc>a -" HIGHLIGHTS +" Highlights "------------------------------------------------------------------------------- " interface @@ -103,7 +104,7 @@ highlight nontext cterm=bold ctermfg=1 highlight specialkey cterm=bold ctermfg=0 highlight cursorline cterm=none ctermbg=none highlight cursorcolumn cterm=bold ctermfg=1 ctermbg=none -highlight cursorlinenr cterm=bold ctermfg=1 +highlight cursorlinenr cterm=bold ctermfg=7 highlight colorcolumn cterm=none ctermfg=1 ctermbg=none highlight linenr cterm=bold ctermfg=0 highlight statusline cterm=bold ctermfg=7 @@ -126,17 +127,17 @@ highlight identifier cterm=none ctermfg=7 highlight number cterm=bold ctermfg=7 -" AUTOCOMMANDS +" Autocommands " ------------------------------------------------------------------------------ autocmd vimenter * :silent !mkdir -p ~/.cache/vim/ autocmd winenter * :file -" PLUGINS +" Plugins "------------------------------------------------------------------------------- execute pathogen#infect() -" UndoTree +" undotree nmap <Leader>u :UndotreeToggle<CR>