dot

packages and services management
Log | Files | Refs | README

commit 0a6c96c036d5470b853c954c486637f3e7beaa5c
parent 150d8a3e1e8c9161d9397f58cc60b0c4c9aba1dd
Author: josuah <mail@josuah.net>
Date:   Wed, 21 Sep 2016 22:21:21 -0400

Using ~/.pam_environment

Diffstat:
Mbin/piped | 4++--
Mbin/src | 1-
Mdvtm/config.h | 28++++++++++++++--------------
Alibevent/build.sh | 2++
Alibncurses/build.sh | 3+++
Ashell/.pam_environment | 35+++++++++++++++++++++++++++++++++++
Mshell/.profile | 107++++++++++++++++++++++++-------------------------------------------------------
Atmux/build.sh | 11+++++++++++
8 files changed, 99 insertions(+), 92 deletions(-)

diff --git a/bin/piped b/bin/piped @@ -5,13 +5,13 @@ # / /_/ / / // /_/ // ____// /_/ / # / ____/ \// ____/ \___\ \____/ #=\/=========\/================================================================= -# Put stdin to a file, open EDITOR on it, and then print the file out. +# Put stdin to a file, open PAGER on it, and then print the file out. tmp="$(mktemp)" cat > "$tmp" -(exec $EDITOR "$tmp") 1>&2 +(exec $PAGER "$tmp") 1>&2 cat "$tmp" rm "$tmp" diff --git a/bin/src b/bin/src @@ -9,7 +9,6 @@ PROGRAMS="${PROGRAMS-$HOME/Programs}" PREFIX="$HOME/.local" CONFIG="${CONFIG-$HOME/Config}" -CPATH="${CPATH-$PREFIX/include}" # FUNCTIONS diff --git a/dvtm/config.h b/dvtm/config.h @@ -68,13 +68,13 @@ const char tags[][10] = { "1", "2", "3", "4 mail", "5 irc", }; /* by default the first layout entry is used */ static Layout layouts[] = { - { " │├┤f ", tile }, - { " ├┬┤b ", bstack }, - { " ├┴┤u ", tstack }, - { " ├─┤n ", vstack }, - { " │@│o ", fibonacci }, - { " ├┼┤g ", grid }, - { " │ │m ", fullscreen }, + { " | |-| f ", tile }, + { " |-,-| b ", bstack }, + { " |-'-| u ", tstack }, + { " |===| n ", vstack }, + { " | |@| o ", fibonacci }, + { " |-|-| g ", grid }, + { " | | m ", fullscreen }, }; #define MOD CTRL(' ') @@ -115,13 +115,13 @@ static KeyBinding bindings[] = { { { MOD, 'q', 'q', }, { quit, { NULL } } }, /* layouts */ - { { MOD, 'f', }, { setlayout, { " │├┤f " }, } }, - { { MOD, 'b', }, { setlayout, { " ├┬┤b " }, } }, - { { MOD, 'u', }, { setlayout, { " ├┴┤u " }, } }, - { { MOD, 'n', }, { setlayout, { " ├─┤n " }, } }, - { { MOD, 'o', }, { setlayout, { " │@│o " }, } }, - { { MOD, 'g', }, { setlayout, { " ├┼┤g " }, } }, - { { MOD, 'm', }, { setlayout, { " │ │m " }, } }, + { { MOD, 'f', }, { setlayout, { " | |-| f " }, } }, + { { MOD, 'b', }, { setlayout, { " |-,-| b " }, } }, + { { MOD, 'u', }, { setlayout, { " |-'-| u " }, } }, + { { MOD, 'n', }, { setlayout, { " |===| n " }, } }, + { { MOD, 'o', }, { setlayout, { " | @ | o " }, } }, + { { MOD, 'g', }, { setlayout, { " |-|-| g " }, } }, + { { MOD, 'm', }, { setlayout, { " | | m " }, } }, { { MOD, ' ', }, { setlayout, { NULL } } }, { { MOD, 'i', }, { incnmaster, { "+1" } } }, { { MOD, 'd', }, { incnmaster, { "-1" } } }, diff --git a/libevent/build.sh b/libevent/build.sh @@ -0,0 +1,2 @@ +# Event-driven callback library used by tmux +tar=http://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz diff --git a/libncurses/build.sh b/libncurses/build.sh @@ -0,0 +1,3 @@ +# The almighty ncurses library + +tar= diff --git a/shell/.pam_environment b/shell/.pam_environment @@ -0,0 +1,35 @@ +# ___ ____ __ /\ __ /\ _____ _____ ____ +# .'__ \ / __ \ / / / / / / / /.'__ // ____\ / __/ +# / ____// / / / \ \/ / \ \/ // /_/ // / __\ \ +# \___\ \/ \/ \_,' \_,' \____/ \/ \___/ 2016-09-21 +#=============================================================================== +# Environment variables + + +EMAIL OVERRIDE="mail@josuah.net" + +# COMMANDS 2016-09-21 +#------------------------------------------------------------------------------- + +EDITOR DEFAULT=vim +ALTERNATE_EDITOR DEFAULT=vi +VISUAL DEFAULT=${EDITOR} +FCEDIT DEFAULT=${EDITOR} +PAGER DEFAULT="less -FIRM" +BROWSER DEFAULT=w3m +FILTER DEFAULT=peax + + +# DIRECTORIES 2016-09-21 +#------------------------------------------------------------------------------- + +CONFIG DEFAULT=@{HOME}/Config +MAIL DEFAULT=@{HOME}/Mail/INBOX +PREFIX DEFAULT=@{HOME}/.local +ENV DEFAULT=@{HOME}/.profile +MANPATH DEFAULT=${MANPATH}:${PREFIX}/share/man:${PREFIX}/man +LD_LIBRARY_PATH DEFAULT=${PREFIX}/lib +XDG_CONFIG_HOME DEFAULT=@{HOME}/.config +XDG_CACHE_HOME DEFAULT=@{HOME}/.cache +XDG_DATA_HOME DEFAULT=@{HOME}/.local/share +ABDUCO_SOCKET_DIR DEFAULT=${XDG_CACHE_HOME}/ diff --git a/shell/.profile b/shell/.profile @@ -6,84 +6,12 @@ #/ ____/ \/ \____/ \/ \/ \/ \___\ - Variables & shell config #\/============================================================================= -export EMAIL='mail@josuah.net' - - -# TERMINAL - -export LS_COLORS='so=35:tw=91:ow=93' -export NCURSES_NO_UTF8_ACS=1 # Fix for dvtm + abduco in TTY -export TERMCAP="vt102|$TERM|dec vt102:"'\ - :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:\ - :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\ - :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\ - :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ - :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:\ - :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h:\ - :mi:al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:' # For ex-vi to work - - -# COMMANDS - -for editor in vi vis vim -do command -v "$editor" > /dev/null && EDITOR="$editor" -done -export EDITOR -export ALTERNATE_EDITOR='vi' -export DVTM_EDITOR='piped' -export VISUAL="$EDITOR" -export FCEDIT="$EDITOR" -export PAGER='less -FIRM' -export BROWSER='w3m' -export FILTER='peax' - - -# DIRECTORIES - -export DOT="$HOME/Config" -export MAIL="$HOME/Mail/INBOX" -export ENV="$HOME/.profile" -export PATH="$PATH:$HOME/.local/bin" # binaries built locally -export PATH="$PATH:$DOT/bin" # scripts -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_DATA_HOME="$HOME/.local/share" -export ABDUCO_SOCKET_DIR="$XDG_CACHE_HOME/" - - -# PROMPTS - -export PS1='$(ps1)' -export PS2='| ' - - -# ALIAS -#------------------------------------------------------------------------------- - -alias l='ls -F -C -w 80 --color' -alias ll='l -lh' -alias la='l -A' -alias lla='l -Alh' -alias weather='curl -4 wttr.in' -alias lines='find . -name "*.[ch]" | xargs wc -l' -alias myip='curl icanhazip.com' -alias a='buffers attach' -alias r='buffers run' -alias v='buffers run $VISUAL' -alias p='$PAGER' -alias f='find . -type f ! -path "*/.git/*" | fzy' -alias d='find . -type d ! -path "*/.git/*" | fzy' -alias c='cd "$(d)"' -alias g='grep --color=always' -alias xo='DISPLAY=:0 xclip -o | xargs' -alias xi='DISPLAY=:0 xclip -i' - # VARIABLES #------------------------------------------------------------------------------- +export PATH="$CONFIG/bin:$PREFIX/bin:$PATH" + solarized_light="\ \033]P0ffddbb \033]P1d0154b \033]P2779900 \033]P3ffa700\ \033]P4096daf \033]P5897f74 \033]P600aa88 \033]P7000000\ @@ -103,7 +31,7 @@ coal="\ \033]PCaaddff \033]PDaaaaaa \033]PE99ffbb \033]PFffffff" -# FUNCTIONS +# PROMPT #------------------------------------------------------------------------------- ps1() @@ -144,6 +72,35 @@ ps1() printf '\n$ ' } +export PS1='$(ps1)' +export PS2='| ' + + +# ALIAS +#------------------------------------------------------------------------------- + +alias l='ls -F -C -w 80 --color' +alias ll='l -lh' +alias la='l -A' +alias lla='l -Alh' +alias weather='curl -4 wttr.in' +alias lines='find . -name "*.[ch]" | xargs wc -l' +alias myip='curl icanhazip.com' +alias a='buffers attach' +alias r='buffers run' +alias v='buffers run $VISUAL' +alias p='$PAGER' +alias f='find . -type f ! -path "*/.git/*" | fzy' +alias d='find . -type d ! -path "*/.git/*" | fzy' +alias c='cd "$(d)"' +alias g='grep --color=always' +alias xo='DISPLAY=:0 xclip -o | xargs' +alias xi='DISPLAY=:0 xclip -i' + + +# FUNCTIONS +#------------------------------------------------------------------------------- + h() { for field in $@; do local cmd="$cmd $field"; done diff --git a/tmux/build.sh b/tmux/build.sh @@ -0,0 +1,11 @@ +# Terminal multiplexer that rocks + +tar=http://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz + +build() +{ + ./configure --prefix="$PREFIX" \ + CFLAGS="-I$HOME/.local/include" \ + LDFLAGS="-L$HOME/.local/lib" + make install +}