dot

packages and services management
Log | Files | Refs | README

commit bf0ce1c08d870857abf5752ddb0f0c94841172d1
parent 300bbc6e09c9adb0421c6fee73707c0496602d34
Author: josuah <mail@josuah.net>
Date:   Wed, 16 Nov 2016 17:29:51 -0500

Added back functions to .profile

Diffstat:
A.version/2016-11-16-12-40-38-3a44b4608b946b9138108264ea6026b5 | 122+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.version/2016-11-16-12-42-14-7d61974926364a0c258d2ab687e2156c | 122+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.version/2016-11-16-12-43-04-68317ebdfe18a6c6d8e1d66a5887acf1 | 122+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.version/2016-11-16-12-44-58-d1315a23ec33cca6591a22b1582f3c63 | 122+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mbin/version | 70+++++++++++++++++++++++++++++++++++++++++++++++++---------------------
Mshell/.profile | 180+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------
Mshell/environment | 38+-------------------------------------
Dshell/functions | 159-------------------------------------------------------------------------------
8 files changed, 697 insertions(+), 238 deletions(-)

diff --git a/.version/2016-11-16-12-40-38-3a44b4608b946b9138108264ea6026b5 b/.version/2016-11-16-12-40-38-3a44b4608b946b9138108264ea6026b5 @@ -0,0 +1,122 @@ +a7adbd21c738c1ab806cb4054fe2cf3c ./zathura/.config/zathura/zathurarc +b66a47c50eb8041f1c93d4eafa293193 ./build/yasm +8da62c932f2377c93b2e1bfb0efeb6d0 ./build/libutf +3c1cc24f42f8951c75f5e079ce641b6b ./build/libevent +9fa1ad16181ee446fc2a03cf2b8ed7f5 ./build/mblaze +709d226d5658332c01e52a1e382a312d ./build/lpeg +e8eca172f6eaaefaef03e8ad328b6045 ./build/libtermkey +e3c59fe3dcbac97dbfc7a046d8bb6481 ./build/ctags +31dba9093d24c586c45ff231d779e8aa ./build/dvtm +d78d97737a32fdb3f00f6fdc1e6b9db7 ./build/vis +a300553ec2ed5e2e7324ee7031969582 ./build/git +8e1029443eaa5ea45669fa5bcaab7e1b ./build/vim +8cfd054233c079de31957791573d8593 ./build/mandoc +026c87d1f1c47d2292377afe09477c85 ./build/pcre +4bf83581c18e2a377ff914eb71106e15 ./build/ii +89154d71cf61149c1df97c548ec6ffe5 ./build/retawq +20863951a9d5c14ba03b5ae2e78549c0 ./build/s-mailx +6edcc36e32884560f9187b244badca3f ./build/lua +3f1904e4214d034421e083ebd1dd22a2 ./build/iirc +ce9b1a6796b65dc09cbe6d711c2c6078 ./build/mmh +4167eceec2e19e7e9ac92f0ed89f3e2a ./build/less +516b3340cad744739720efaf67924924 ./build/barkdown +3eb8b71eddcc09f2015ec381d36476b7 ./build/libncurses +e0e7ad45f6a8b41d926491e029b70c11 ./build/msmtp +5462f0a2f8950b584a8998e87eeea788 ./build/iomenu +7f9fdd8504b91d01af6f3af9bc0137ca ./build/dmenu +27a34a7484c8df70efbc6c9eef35e625 ./build/mujs +57843940b8830c678d16a14ca3437e51 ./build/tmux +1a4fdcef64d1af18db0672dc6dc56415 ./build/zsh +249db0cabfc2ff78da0089e8dbd4fea7 ./build/reflex +7ae43145b591e725227a00fd78fbaa25 ./build/fzy +8be811765fcbdaeae4876ba775ea08d3 ./build/m4 +53ffa49678a47a04bf5174894e46467e ./build/fzf +b89261621107852e5d46535d83898644 ./build/dwm +4fd1cf2059fddd990ea2fb02262aae6a ./build/isync +458f796bb92938a03c8dfe2f3511d70d ./build/st +8084b8c0aae9f624b70e6c432406b25d ./build/byacc +04709c02878c4272e1c99648b9d37fca ./build/abduco +2b607406bf0bf6f007c65bffaead5791 ./build/unagi +c28017694f8098045728e5605ac37b6a ./dvtm/dvtm.c-0.14-pertag.diff +4a9b5a7237cb8202213245956d126384 ./dvtm/dvtm-status +80c62ad3e94b6a52ccb45c31b04a2592 ./dvtm/dvtm-focused-tags.diff.disabled +6d9054511e692eedd68bcc55f40f1218 ./dvtm/gaps.diff +5c5691ed34db97c0f8104bc8a6f17096 ./dvtm/config.h +da92205dcced82ca358711f61ca23a50 ./vis/.config/visrc.lua +7f0145faf9fa513fba4a386bc01bf6e5 ./fonts/terminus/ter-v18n.psf.gz +2e41be4bd5a4a3f28bcaae0834658112 ./fonts/terminus/ter-v18b.psf.gz +3ee263a2e563e59aabe10e5deccde6f8 ./fonts/terminus/ter-v12n.psf.gz +5980ac07cd21b8f7d033e791057f891e ./fonts/terminus/ter-v22n.psf.gz +12cea0f30c119b7f0ccc6008145d1ae7 ./fonts/terminus/ter-v14b.psf.gz +f771758a5ac0ff00495a66ac76989e3d ./fonts/terminus/ter-v22b.psf.gz +6648d53a26c8533da62fc80f60c52234 ./fonts/terminus/ter-v16n.psf.gz +aab0705fcaacf8a83f27c2361936e3b1 ./fonts/terminus/ter-v24b.psf.gz +3603f1d774f6cf46ba239b353ba072fa ./fonts/terminus/ter-v24n.psf.gz +75749739d095c578bbc58be7e44ab578 ./fonts/terminus/ter-v28b.psf.gz +b3c03d2573beb57efb3c0b2b03bd4993 ./fonts/terminus/ter-v20n.psf.gz +529fbc968f6c6f9067c326122acdc077 ./fonts/terminus/ter-v32n.psf.gz +8e41df3fd053e8c724d6f0dc1cd0e4eb ./fonts/terminus/ter-v28n.psf.gz +66a0934e8bfc2c8ed813c7ddf7d32411 ./fonts/terminus/ter-v20b.psf.gz +a95902516281bc6360c0ff4f24b2daf2 ./fonts/terminus/ter-v32b.psf.gz +ab85c6c7d762a58129a95d5431af7a6b ./fonts/terminus/ter-v16b.psf.gz +57a5622d27fee03ed59b224e12809980 ./fonts/terminus/ter-v14n.psf.gz +8be77a37c28dfde863b5895d3c2f6145 ./git/.config/git/config +25d24bf9ac9f6590fe426edd36b03d10 ./git/.config/git/ignore +13a552d392e11e18887945233197d007 ./git/projects +e129d87e58dab3d2a49c8e4624bc9371 ./vim/.vim/vimrc +7428cfe651ea8608581b96df0eb42ea8 ./vim/plugins +1bc9e9fc0f34d5276f2b0ccd2fb02e7d ./emacs/.emacs.d/init.el +98292f6066910197d85a0cc574f04871 ./shell/environment +6a77497215aff0290d3bf07f2e0ee3d5 ./shell/functions +39b77ed2a883c03536241849eb5cc5cd ./shell/.profile +bf4182ded7efb5375ff90b6edd6c75fe ./tmux/.tmux.conf +4ef7aa4e5c38f7b325b9f9adcf9bec49 ./dwm/config.mk +4f0b57c6b9331b0a90c97d9c14944609 ./dwm/dwm-uselessgap-6.1.diff +3126263695676ffa7ab7d90e49bd77cb ./dwm/dwm-pertag-6.1.diff +a83ddaad7ac92a9cd9e57dbecefc8cdf ./dwm/config.h +b59b575ed23cc13f56a915195404f012 ./README +63e75432369efaed17b8e299ed02557c ./mail/.msmtprc +7b776b672830e48596e1da3c132b5627 ./mail/.mailrc +4d6ee0a117865d479fd079af56eab774 ./mail/.mbsyncrc +b74286623d75f1474402a133d89e0f81 ./st/st-alpha-0.6.diff +eaeb5b66f3bace57f85841b90f951efc ./st/config.h +4d55dda5e1a5912072e135f09278fa7e ./xorg/.config/themes/solarized_dark +aa04ec50822c0696cb3e8bb3788c196a ./xorg/.config/themes/ghost +975f3f53cb42a17ce4ce1cbaa4922e56 ./xorg/.config/themes/matrix +31ec2eceab970e2ad4c74aaa81630e9a ./xorg/.config/themes/gotham +41e7041af6b250f7dee87f34c77575b9 ./xorg/.config/themes/bioelectric +a9898dfef3d2731ebbddf357260e8eb7 ./xorg/.config/themes/zenburn +7cb67df87f19509e302e80ba1b269fa6 ./xorg/.config/themes/solarized_light +b2e85842e4940c3219369438a08b9c93 ./xorg/.config/themes/monokai +fcd06e444677cbffe248e861df84c143 ./xorg/.config/themes/gruvbox +15a200ceb6216a73de120c4311c98265 ./xorg/.config/themes/pink +c4b545511e0e5d299ac7810b78a2c409 ./xorg/.config/themes/coal +da965319bbd690479c3692556de70763 ./xorg/.config/themes/drakula +af5f1dee7478c6fba1da2c63aef1ed4b ./xorg/.xinitrc +9031e3379dca8dbdbe7ba912dba534a5 ./bin/agenda +b5741650892fe5b46a3a0ebeae12564f ./bin/.config/feeds/urls +34e26c94490913d0334af11586e998c6 ./bin/.config/feeds/read +6ef6750b88370845f127f9c2fc87bae2 ./bin/build +f45efcb066dc0523bc985a0bb3dfd1f0 ./bin/status-line +87e124ba4229c9449ec243850dba040e ./bin/www +5bb3cd175b718805f34caa175d1065d6 ./bin/config-link +20e88b35db04f592deb34aca33f2b4a7 ./bin/status +98fe40895963e32c19439275b78b7645 ./bin/dna +dba778ed068a22ddf80e511ab0efb7c7 ./bin/piano +78df2f19921fc5a38ed6f94d253d50e9 ./bin/adagio +d4ca2f0d3f419cf035b3293b9cc1547e ./bin/version +c280a3c1b9b8ab9ec68637c583793f86 ./bin/config-git +9f19a5072a893dd09575e5c654d1686e ./bin/music +0b354d053c2c883b2c6bd372b2def60d ./bin/blawk +04ec66b55f8de1e99a238a0f6c866605 ./bin/config +c6589802addb38e02fd6772e78d0f499 ./bin/config-sync +737e26a09d6969324539a33203439265 ./bin/peax +c3f37ec795535e96469fc79ad2770587 ./bin/www.1 +1bc46973d70d14d9e8612f25aa914c79 ./bin/complete +7bfdd306a322560529b167219f48e885 ./bin/config-mail +216c467a40e09de40e4aa6412b89b89c ./bin/lightsaber +39962a15947d391697126dad91ecbe9f ./bin/config-vim +46dcbceb32e9738e0c02eea4a57dd1ea ./bin/drawk +30cca54feac6184f8dcb9d160942eee3 ./bin/buffers +ae8efa0c29e27dcee5c4b28977e38cc0 ./bin/theme +7e4fdb13505afa33d10e6fd743af8d9a ./abduco/config.h diff --git a/.version/2016-11-16-12-42-14-7d61974926364a0c258d2ab687e2156c b/.version/2016-11-16-12-42-14-7d61974926364a0c258d2ab687e2156c @@ -0,0 +1,122 @@ +a7adbd21c738c1ab806cb4054fe2cf3c ./zathura/.config/zathura/zathurarc +b66a47c50eb8041f1c93d4eafa293193 ./build/yasm +8da62c932f2377c93b2e1bfb0efeb6d0 ./build/libutf +3c1cc24f42f8951c75f5e079ce641b6b ./build/libevent +9fa1ad16181ee446fc2a03cf2b8ed7f5 ./build/mblaze +709d226d5658332c01e52a1e382a312d ./build/lpeg +e8eca172f6eaaefaef03e8ad328b6045 ./build/libtermkey +e3c59fe3dcbac97dbfc7a046d8bb6481 ./build/ctags +31dba9093d24c586c45ff231d779e8aa ./build/dvtm +d78d97737a32fdb3f00f6fdc1e6b9db7 ./build/vis +a300553ec2ed5e2e7324ee7031969582 ./build/git +8e1029443eaa5ea45669fa5bcaab7e1b ./build/vim +8cfd054233c079de31957791573d8593 ./build/mandoc +026c87d1f1c47d2292377afe09477c85 ./build/pcre +4bf83581c18e2a377ff914eb71106e15 ./build/ii +89154d71cf61149c1df97c548ec6ffe5 ./build/retawq +20863951a9d5c14ba03b5ae2e78549c0 ./build/s-mailx +6edcc36e32884560f9187b244badca3f ./build/lua +3f1904e4214d034421e083ebd1dd22a2 ./build/iirc +ce9b1a6796b65dc09cbe6d711c2c6078 ./build/mmh +4167eceec2e19e7e9ac92f0ed89f3e2a ./build/less +516b3340cad744739720efaf67924924 ./build/barkdown +3eb8b71eddcc09f2015ec381d36476b7 ./build/libncurses +e0e7ad45f6a8b41d926491e029b70c11 ./build/msmtp +5462f0a2f8950b584a8998e87eeea788 ./build/iomenu +7f9fdd8504b91d01af6f3af9bc0137ca ./build/dmenu +27a34a7484c8df70efbc6c9eef35e625 ./build/mujs +57843940b8830c678d16a14ca3437e51 ./build/tmux +1a4fdcef64d1af18db0672dc6dc56415 ./build/zsh +249db0cabfc2ff78da0089e8dbd4fea7 ./build/reflex +7ae43145b591e725227a00fd78fbaa25 ./build/fzy +8be811765fcbdaeae4876ba775ea08d3 ./build/m4 +53ffa49678a47a04bf5174894e46467e ./build/fzf +b89261621107852e5d46535d83898644 ./build/dwm +4fd1cf2059fddd990ea2fb02262aae6a ./build/isync +458f796bb92938a03c8dfe2f3511d70d ./build/st +8084b8c0aae9f624b70e6c432406b25d ./build/byacc +04709c02878c4272e1c99648b9d37fca ./build/abduco +2b607406bf0bf6f007c65bffaead5791 ./build/unagi +c28017694f8098045728e5605ac37b6a ./dvtm/dvtm.c-0.14-pertag.diff +4a9b5a7237cb8202213245956d126384 ./dvtm/dvtm-status +80c62ad3e94b6a52ccb45c31b04a2592 ./dvtm/dvtm-focused-tags.diff.disabled +6d9054511e692eedd68bcc55f40f1218 ./dvtm/gaps.diff +5c5691ed34db97c0f8104bc8a6f17096 ./dvtm/config.h +da92205dcced82ca358711f61ca23a50 ./vis/.config/visrc.lua +7f0145faf9fa513fba4a386bc01bf6e5 ./fonts/terminus/ter-v18n.psf.gz +2e41be4bd5a4a3f28bcaae0834658112 ./fonts/terminus/ter-v18b.psf.gz +3ee263a2e563e59aabe10e5deccde6f8 ./fonts/terminus/ter-v12n.psf.gz +5980ac07cd21b8f7d033e791057f891e ./fonts/terminus/ter-v22n.psf.gz +12cea0f30c119b7f0ccc6008145d1ae7 ./fonts/terminus/ter-v14b.psf.gz +f771758a5ac0ff00495a66ac76989e3d ./fonts/terminus/ter-v22b.psf.gz +6648d53a26c8533da62fc80f60c52234 ./fonts/terminus/ter-v16n.psf.gz +aab0705fcaacf8a83f27c2361936e3b1 ./fonts/terminus/ter-v24b.psf.gz +3603f1d774f6cf46ba239b353ba072fa ./fonts/terminus/ter-v24n.psf.gz +75749739d095c578bbc58be7e44ab578 ./fonts/terminus/ter-v28b.psf.gz +b3c03d2573beb57efb3c0b2b03bd4993 ./fonts/terminus/ter-v20n.psf.gz +529fbc968f6c6f9067c326122acdc077 ./fonts/terminus/ter-v32n.psf.gz +8e41df3fd053e8c724d6f0dc1cd0e4eb ./fonts/terminus/ter-v28n.psf.gz +66a0934e8bfc2c8ed813c7ddf7d32411 ./fonts/terminus/ter-v20b.psf.gz +a95902516281bc6360c0ff4f24b2daf2 ./fonts/terminus/ter-v32b.psf.gz +ab85c6c7d762a58129a95d5431af7a6b ./fonts/terminus/ter-v16b.psf.gz +57a5622d27fee03ed59b224e12809980 ./fonts/terminus/ter-v14n.psf.gz +8be77a37c28dfde863b5895d3c2f6145 ./git/.config/git/config +25d24bf9ac9f6590fe426edd36b03d10 ./git/.config/git/ignore +13a552d392e11e18887945233197d007 ./git/projects +e129d87e58dab3d2a49c8e4624bc9371 ./vim/.vim/vimrc +7428cfe651ea8608581b96df0eb42ea8 ./vim/plugins +1bc9e9fc0f34d5276f2b0ccd2fb02e7d ./emacs/.emacs.d/init.el +98292f6066910197d85a0cc574f04871 ./shell/environment +6a77497215aff0290d3bf07f2e0ee3d5 ./shell/functions +39b77ed2a883c03536241849eb5cc5cd ./shell/.profile +bf4182ded7efb5375ff90b6edd6c75fe ./tmux/.tmux.conf +4ef7aa4e5c38f7b325b9f9adcf9bec49 ./dwm/config.mk +4f0b57c6b9331b0a90c97d9c14944609 ./dwm/dwm-uselessgap-6.1.diff +3126263695676ffa7ab7d90e49bd77cb ./dwm/dwm-pertag-6.1.diff +a83ddaad7ac92a9cd9e57dbecefc8cdf ./dwm/config.h +b59b575ed23cc13f56a915195404f012 ./README +63e75432369efaed17b8e299ed02557c ./mail/.msmtprc +7b776b672830e48596e1da3c132b5627 ./mail/.mailrc +4d6ee0a117865d479fd079af56eab774 ./mail/.mbsyncrc +b74286623d75f1474402a133d89e0f81 ./st/st-alpha-0.6.diff +eaeb5b66f3bace57f85841b90f951efc ./st/config.h +4d55dda5e1a5912072e135f09278fa7e ./xorg/.config/themes/solarized_dark +aa04ec50822c0696cb3e8bb3788c196a ./xorg/.config/themes/ghost +975f3f53cb42a17ce4ce1cbaa4922e56 ./xorg/.config/themes/matrix +31ec2eceab970e2ad4c74aaa81630e9a ./xorg/.config/themes/gotham +41e7041af6b250f7dee87f34c77575b9 ./xorg/.config/themes/bioelectric +a9898dfef3d2731ebbddf357260e8eb7 ./xorg/.config/themes/zenburn +7cb67df87f19509e302e80ba1b269fa6 ./xorg/.config/themes/solarized_light +b2e85842e4940c3219369438a08b9c93 ./xorg/.config/themes/monokai +fcd06e444677cbffe248e861df84c143 ./xorg/.config/themes/gruvbox +15a200ceb6216a73de120c4311c98265 ./xorg/.config/themes/pink +c4b545511e0e5d299ac7810b78a2c409 ./xorg/.config/themes/coal +da965319bbd690479c3692556de70763 ./xorg/.config/themes/drakula +af5f1dee7478c6fba1da2c63aef1ed4b ./xorg/.xinitrc +9031e3379dca8dbdbe7ba912dba534a5 ./bin/agenda +b5741650892fe5b46a3a0ebeae12564f ./bin/.config/feeds/urls +34e26c94490913d0334af11586e998c6 ./bin/.config/feeds/read +6ef6750b88370845f127f9c2fc87bae2 ./bin/build +f45efcb066dc0523bc985a0bb3dfd1f0 ./bin/status-line +87e124ba4229c9449ec243850dba040e ./bin/www +5bb3cd175b718805f34caa175d1065d6 ./bin/config-link +20e88b35db04f592deb34aca33f2b4a7 ./bin/status +98fe40895963e32c19439275b78b7645 ./bin/dna +dba778ed068a22ddf80e511ab0efb7c7 ./bin/piano +78df2f19921fc5a38ed6f94d253d50e9 ./bin/adagio +b1e981f8f12512a0fc51c9f1cc38596f ./bin/version +c280a3c1b9b8ab9ec68637c583793f86 ./bin/config-git +9f19a5072a893dd09575e5c654d1686e ./bin/music +0b354d053c2c883b2c6bd372b2def60d ./bin/blawk +04ec66b55f8de1e99a238a0f6c866605 ./bin/config +c6589802addb38e02fd6772e78d0f499 ./bin/config-sync +737e26a09d6969324539a33203439265 ./bin/peax +c3f37ec795535e96469fc79ad2770587 ./bin/www.1 +1bc46973d70d14d9e8612f25aa914c79 ./bin/complete +7bfdd306a322560529b167219f48e885 ./bin/config-mail +216c467a40e09de40e4aa6412b89b89c ./bin/lightsaber +39962a15947d391697126dad91ecbe9f ./bin/config-vim +46dcbceb32e9738e0c02eea4a57dd1ea ./bin/drawk +30cca54feac6184f8dcb9d160942eee3 ./bin/buffers +ae8efa0c29e27dcee5c4b28977e38cc0 ./bin/theme +7e4fdb13505afa33d10e6fd743af8d9a ./abduco/config.h diff --git a/.version/2016-11-16-12-43-04-68317ebdfe18a6c6d8e1d66a5887acf1 b/.version/2016-11-16-12-43-04-68317ebdfe18a6c6d8e1d66a5887acf1 @@ -0,0 +1,122 @@ +a7adbd21c738c1ab806cb4054fe2cf3c ./zathura/.config/zathura/zathurarc +b66a47c50eb8041f1c93d4eafa293193 ./build/yasm +8da62c932f2377c93b2e1bfb0efeb6d0 ./build/libutf +3c1cc24f42f8951c75f5e079ce641b6b ./build/libevent +9fa1ad16181ee446fc2a03cf2b8ed7f5 ./build/mblaze +709d226d5658332c01e52a1e382a312d ./build/lpeg +e8eca172f6eaaefaef03e8ad328b6045 ./build/libtermkey +e3c59fe3dcbac97dbfc7a046d8bb6481 ./build/ctags +31dba9093d24c586c45ff231d779e8aa ./build/dvtm +d78d97737a32fdb3f00f6fdc1e6b9db7 ./build/vis +a300553ec2ed5e2e7324ee7031969582 ./build/git +8e1029443eaa5ea45669fa5bcaab7e1b ./build/vim +8cfd054233c079de31957791573d8593 ./build/mandoc +026c87d1f1c47d2292377afe09477c85 ./build/pcre +4bf83581c18e2a377ff914eb71106e15 ./build/ii +89154d71cf61149c1df97c548ec6ffe5 ./build/retawq +20863951a9d5c14ba03b5ae2e78549c0 ./build/s-mailx +6edcc36e32884560f9187b244badca3f ./build/lua +3f1904e4214d034421e083ebd1dd22a2 ./build/iirc +ce9b1a6796b65dc09cbe6d711c2c6078 ./build/mmh +4167eceec2e19e7e9ac92f0ed89f3e2a ./build/less +516b3340cad744739720efaf67924924 ./build/barkdown +3eb8b71eddcc09f2015ec381d36476b7 ./build/libncurses +e0e7ad45f6a8b41d926491e029b70c11 ./build/msmtp +5462f0a2f8950b584a8998e87eeea788 ./build/iomenu +7f9fdd8504b91d01af6f3af9bc0137ca ./build/dmenu +27a34a7484c8df70efbc6c9eef35e625 ./build/mujs +57843940b8830c678d16a14ca3437e51 ./build/tmux +1a4fdcef64d1af18db0672dc6dc56415 ./build/zsh +249db0cabfc2ff78da0089e8dbd4fea7 ./build/reflex +7ae43145b591e725227a00fd78fbaa25 ./build/fzy +8be811765fcbdaeae4876ba775ea08d3 ./build/m4 +53ffa49678a47a04bf5174894e46467e ./build/fzf +b89261621107852e5d46535d83898644 ./build/dwm +4fd1cf2059fddd990ea2fb02262aae6a ./build/isync +458f796bb92938a03c8dfe2f3511d70d ./build/st +8084b8c0aae9f624b70e6c432406b25d ./build/byacc +04709c02878c4272e1c99648b9d37fca ./build/abduco +2b607406bf0bf6f007c65bffaead5791 ./build/unagi +c28017694f8098045728e5605ac37b6a ./dvtm/dvtm.c-0.14-pertag.diff +4a9b5a7237cb8202213245956d126384 ./dvtm/dvtm-status +80c62ad3e94b6a52ccb45c31b04a2592 ./dvtm/dvtm-focused-tags.diff.disabled +6d9054511e692eedd68bcc55f40f1218 ./dvtm/gaps.diff +5c5691ed34db97c0f8104bc8a6f17096 ./dvtm/config.h +da92205dcced82ca358711f61ca23a50 ./vis/.config/visrc.lua +7f0145faf9fa513fba4a386bc01bf6e5 ./fonts/terminus/ter-v18n.psf.gz +2e41be4bd5a4a3f28bcaae0834658112 ./fonts/terminus/ter-v18b.psf.gz +3ee263a2e563e59aabe10e5deccde6f8 ./fonts/terminus/ter-v12n.psf.gz +5980ac07cd21b8f7d033e791057f891e ./fonts/terminus/ter-v22n.psf.gz +12cea0f30c119b7f0ccc6008145d1ae7 ./fonts/terminus/ter-v14b.psf.gz +f771758a5ac0ff00495a66ac76989e3d ./fonts/terminus/ter-v22b.psf.gz +6648d53a26c8533da62fc80f60c52234 ./fonts/terminus/ter-v16n.psf.gz +aab0705fcaacf8a83f27c2361936e3b1 ./fonts/terminus/ter-v24b.psf.gz +3603f1d774f6cf46ba239b353ba072fa ./fonts/terminus/ter-v24n.psf.gz +75749739d095c578bbc58be7e44ab578 ./fonts/terminus/ter-v28b.psf.gz +b3c03d2573beb57efb3c0b2b03bd4993 ./fonts/terminus/ter-v20n.psf.gz +529fbc968f6c6f9067c326122acdc077 ./fonts/terminus/ter-v32n.psf.gz +8e41df3fd053e8c724d6f0dc1cd0e4eb ./fonts/terminus/ter-v28n.psf.gz +66a0934e8bfc2c8ed813c7ddf7d32411 ./fonts/terminus/ter-v20b.psf.gz +a95902516281bc6360c0ff4f24b2daf2 ./fonts/terminus/ter-v32b.psf.gz +ab85c6c7d762a58129a95d5431af7a6b ./fonts/terminus/ter-v16b.psf.gz +57a5622d27fee03ed59b224e12809980 ./fonts/terminus/ter-v14n.psf.gz +8be77a37c28dfde863b5895d3c2f6145 ./git/.config/git/config +25d24bf9ac9f6590fe426edd36b03d10 ./git/.config/git/ignore +13a552d392e11e18887945233197d007 ./git/projects +e129d87e58dab3d2a49c8e4624bc9371 ./vim/.vim/vimrc +7428cfe651ea8608581b96df0eb42ea8 ./vim/plugins +1bc9e9fc0f34d5276f2b0ccd2fb02e7d ./emacs/.emacs.d/init.el +98292f6066910197d85a0cc574f04871 ./shell/environment +6a77497215aff0290d3bf07f2e0ee3d5 ./shell/functions +39b77ed2a883c03536241849eb5cc5cd ./shell/.profile +bf4182ded7efb5375ff90b6edd6c75fe ./tmux/.tmux.conf +4ef7aa4e5c38f7b325b9f9adcf9bec49 ./dwm/config.mk +4f0b57c6b9331b0a90c97d9c14944609 ./dwm/dwm-uselessgap-6.1.diff +3126263695676ffa7ab7d90e49bd77cb ./dwm/dwm-pertag-6.1.diff +a83ddaad7ac92a9cd9e57dbecefc8cdf ./dwm/config.h +b59b575ed23cc13f56a915195404f012 ./README +63e75432369efaed17b8e299ed02557c ./mail/.msmtprc +7b776b672830e48596e1da3c132b5627 ./mail/.mailrc +4d6ee0a117865d479fd079af56eab774 ./mail/.mbsyncrc +b74286623d75f1474402a133d89e0f81 ./st/st-alpha-0.6.diff +eaeb5b66f3bace57f85841b90f951efc ./st/config.h +4d55dda5e1a5912072e135f09278fa7e ./xorg/.config/themes/solarized_dark +aa04ec50822c0696cb3e8bb3788c196a ./xorg/.config/themes/ghost +975f3f53cb42a17ce4ce1cbaa4922e56 ./xorg/.config/themes/matrix +31ec2eceab970e2ad4c74aaa81630e9a ./xorg/.config/themes/gotham +41e7041af6b250f7dee87f34c77575b9 ./xorg/.config/themes/bioelectric +a9898dfef3d2731ebbddf357260e8eb7 ./xorg/.config/themes/zenburn +7cb67df87f19509e302e80ba1b269fa6 ./xorg/.config/themes/solarized_light +b2e85842e4940c3219369438a08b9c93 ./xorg/.config/themes/monokai +fcd06e444677cbffe248e861df84c143 ./xorg/.config/themes/gruvbox +15a200ceb6216a73de120c4311c98265 ./xorg/.config/themes/pink +c4b545511e0e5d299ac7810b78a2c409 ./xorg/.config/themes/coal +da965319bbd690479c3692556de70763 ./xorg/.config/themes/drakula +af5f1dee7478c6fba1da2c63aef1ed4b ./xorg/.xinitrc +9031e3379dca8dbdbe7ba912dba534a5 ./bin/agenda +b5741650892fe5b46a3a0ebeae12564f ./bin/.config/feeds/urls +34e26c94490913d0334af11586e998c6 ./bin/.config/feeds/read +6ef6750b88370845f127f9c2fc87bae2 ./bin/build +f45efcb066dc0523bc985a0bb3dfd1f0 ./bin/status-line +87e124ba4229c9449ec243850dba040e ./bin/www +5bb3cd175b718805f34caa175d1065d6 ./bin/config-link +20e88b35db04f592deb34aca33f2b4a7 ./bin/status +98fe40895963e32c19439275b78b7645 ./bin/dna +dba778ed068a22ddf80e511ab0efb7c7 ./bin/piano +78df2f19921fc5a38ed6f94d253d50e9 ./bin/adagio +c17e3e57dc64ce5f394d04b3e4e4e1da ./bin/version +c280a3c1b9b8ab9ec68637c583793f86 ./bin/config-git +9f19a5072a893dd09575e5c654d1686e ./bin/music +0b354d053c2c883b2c6bd372b2def60d ./bin/blawk +04ec66b55f8de1e99a238a0f6c866605 ./bin/config +c6589802addb38e02fd6772e78d0f499 ./bin/config-sync +737e26a09d6969324539a33203439265 ./bin/peax +c3f37ec795535e96469fc79ad2770587 ./bin/www.1 +1bc46973d70d14d9e8612f25aa914c79 ./bin/complete +7bfdd306a322560529b167219f48e885 ./bin/config-mail +216c467a40e09de40e4aa6412b89b89c ./bin/lightsaber +39962a15947d391697126dad91ecbe9f ./bin/config-vim +46dcbceb32e9738e0c02eea4a57dd1ea ./bin/drawk +30cca54feac6184f8dcb9d160942eee3 ./bin/buffers +ae8efa0c29e27dcee5c4b28977e38cc0 ./bin/theme +7e4fdb13505afa33d10e6fd743af8d9a ./abduco/config.h diff --git a/.version/2016-11-16-12-44-58-d1315a23ec33cca6591a22b1582f3c63 b/.version/2016-11-16-12-44-58-d1315a23ec33cca6591a22b1582f3c63 @@ -0,0 +1,122 @@ +a7adbd21c738c1ab806cb4054fe2cf3c ./zathura/.config/zathura/zathurarc +b66a47c50eb8041f1c93d4eafa293193 ./build/yasm +8da62c932f2377c93b2e1bfb0efeb6d0 ./build/libutf +3c1cc24f42f8951c75f5e079ce641b6b ./build/libevent +9fa1ad16181ee446fc2a03cf2b8ed7f5 ./build/mblaze +709d226d5658332c01e52a1e382a312d ./build/lpeg +e8eca172f6eaaefaef03e8ad328b6045 ./build/libtermkey +e3c59fe3dcbac97dbfc7a046d8bb6481 ./build/ctags +31dba9093d24c586c45ff231d779e8aa ./build/dvtm +d78d97737a32fdb3f00f6fdc1e6b9db7 ./build/vis +a300553ec2ed5e2e7324ee7031969582 ./build/git +8e1029443eaa5ea45669fa5bcaab7e1b ./build/vim +8cfd054233c079de31957791573d8593 ./build/mandoc +026c87d1f1c47d2292377afe09477c85 ./build/pcre +4bf83581c18e2a377ff914eb71106e15 ./build/ii +89154d71cf61149c1df97c548ec6ffe5 ./build/retawq +20863951a9d5c14ba03b5ae2e78549c0 ./build/s-mailx +6edcc36e32884560f9187b244badca3f ./build/lua +3f1904e4214d034421e083ebd1dd22a2 ./build/iirc +ce9b1a6796b65dc09cbe6d711c2c6078 ./build/mmh +4167eceec2e19e7e9ac92f0ed89f3e2a ./build/less +516b3340cad744739720efaf67924924 ./build/barkdown +3eb8b71eddcc09f2015ec381d36476b7 ./build/libncurses +e0e7ad45f6a8b41d926491e029b70c11 ./build/msmtp +5462f0a2f8950b584a8998e87eeea788 ./build/iomenu +7f9fdd8504b91d01af6f3af9bc0137ca ./build/dmenu +27a34a7484c8df70efbc6c9eef35e625 ./build/mujs +57843940b8830c678d16a14ca3437e51 ./build/tmux +1a4fdcef64d1af18db0672dc6dc56415 ./build/zsh +249db0cabfc2ff78da0089e8dbd4fea7 ./build/reflex +7ae43145b591e725227a00fd78fbaa25 ./build/fzy +8be811765fcbdaeae4876ba775ea08d3 ./build/m4 +53ffa49678a47a04bf5174894e46467e ./build/fzf +b89261621107852e5d46535d83898644 ./build/dwm +4fd1cf2059fddd990ea2fb02262aae6a ./build/isync +458f796bb92938a03c8dfe2f3511d70d ./build/st +8084b8c0aae9f624b70e6c432406b25d ./build/byacc +04709c02878c4272e1c99648b9d37fca ./build/abduco +2b607406bf0bf6f007c65bffaead5791 ./build/unagi +c28017694f8098045728e5605ac37b6a ./dvtm/dvtm.c-0.14-pertag.diff +4a9b5a7237cb8202213245956d126384 ./dvtm/dvtm-status +80c62ad3e94b6a52ccb45c31b04a2592 ./dvtm/dvtm-focused-tags.diff.disabled +6d9054511e692eedd68bcc55f40f1218 ./dvtm/gaps.diff +5c5691ed34db97c0f8104bc8a6f17096 ./dvtm/config.h +da92205dcced82ca358711f61ca23a50 ./vis/.config/visrc.lua +7f0145faf9fa513fba4a386bc01bf6e5 ./fonts/terminus/ter-v18n.psf.gz +2e41be4bd5a4a3f28bcaae0834658112 ./fonts/terminus/ter-v18b.psf.gz +3ee263a2e563e59aabe10e5deccde6f8 ./fonts/terminus/ter-v12n.psf.gz +5980ac07cd21b8f7d033e791057f891e ./fonts/terminus/ter-v22n.psf.gz +12cea0f30c119b7f0ccc6008145d1ae7 ./fonts/terminus/ter-v14b.psf.gz +f771758a5ac0ff00495a66ac76989e3d ./fonts/terminus/ter-v22b.psf.gz +6648d53a26c8533da62fc80f60c52234 ./fonts/terminus/ter-v16n.psf.gz +aab0705fcaacf8a83f27c2361936e3b1 ./fonts/terminus/ter-v24b.psf.gz +3603f1d774f6cf46ba239b353ba072fa ./fonts/terminus/ter-v24n.psf.gz +75749739d095c578bbc58be7e44ab578 ./fonts/terminus/ter-v28b.psf.gz +b3c03d2573beb57efb3c0b2b03bd4993 ./fonts/terminus/ter-v20n.psf.gz +529fbc968f6c6f9067c326122acdc077 ./fonts/terminus/ter-v32n.psf.gz +8e41df3fd053e8c724d6f0dc1cd0e4eb ./fonts/terminus/ter-v28n.psf.gz +66a0934e8bfc2c8ed813c7ddf7d32411 ./fonts/terminus/ter-v20b.psf.gz +a95902516281bc6360c0ff4f24b2daf2 ./fonts/terminus/ter-v32b.psf.gz +ab85c6c7d762a58129a95d5431af7a6b ./fonts/terminus/ter-v16b.psf.gz +57a5622d27fee03ed59b224e12809980 ./fonts/terminus/ter-v14n.psf.gz +8be77a37c28dfde863b5895d3c2f6145 ./git/.config/git/config +25d24bf9ac9f6590fe426edd36b03d10 ./git/.config/git/ignore +13a552d392e11e18887945233197d007 ./git/projects +e129d87e58dab3d2a49c8e4624bc9371 ./vim/.vim/vimrc +7428cfe651ea8608581b96df0eb42ea8 ./vim/plugins +1bc9e9fc0f34d5276f2b0ccd2fb02e7d ./emacs/.emacs.d/init.el +98292f6066910197d85a0cc574f04871 ./shell/environment +6a77497215aff0290d3bf07f2e0ee3d5 ./shell/functions +39b77ed2a883c03536241849eb5cc5cd ./shell/.profile +bf4182ded7efb5375ff90b6edd6c75fe ./tmux/.tmux.conf +4ef7aa4e5c38f7b325b9f9adcf9bec49 ./dwm/config.mk +4f0b57c6b9331b0a90c97d9c14944609 ./dwm/dwm-uselessgap-6.1.diff +3126263695676ffa7ab7d90e49bd77cb ./dwm/dwm-pertag-6.1.diff +a83ddaad7ac92a9cd9e57dbecefc8cdf ./dwm/config.h +b59b575ed23cc13f56a915195404f012 ./README +63e75432369efaed17b8e299ed02557c ./mail/.msmtprc +7b776b672830e48596e1da3c132b5627 ./mail/.mailrc +4d6ee0a117865d479fd079af56eab774 ./mail/.mbsyncrc +b74286623d75f1474402a133d89e0f81 ./st/st-alpha-0.6.diff +eaeb5b66f3bace57f85841b90f951efc ./st/config.h +4d55dda5e1a5912072e135f09278fa7e ./xorg/.config/themes/solarized_dark +aa04ec50822c0696cb3e8bb3788c196a ./xorg/.config/themes/ghost +975f3f53cb42a17ce4ce1cbaa4922e56 ./xorg/.config/themes/matrix +31ec2eceab970e2ad4c74aaa81630e9a ./xorg/.config/themes/gotham +41e7041af6b250f7dee87f34c77575b9 ./xorg/.config/themes/bioelectric +a9898dfef3d2731ebbddf357260e8eb7 ./xorg/.config/themes/zenburn +7cb67df87f19509e302e80ba1b269fa6 ./xorg/.config/themes/solarized_light +b2e85842e4940c3219369438a08b9c93 ./xorg/.config/themes/monokai +fcd06e444677cbffe248e861df84c143 ./xorg/.config/themes/gruvbox +15a200ceb6216a73de120c4311c98265 ./xorg/.config/themes/pink +c4b545511e0e5d299ac7810b78a2c409 ./xorg/.config/themes/coal +da965319bbd690479c3692556de70763 ./xorg/.config/themes/drakula +af5f1dee7478c6fba1da2c63aef1ed4b ./xorg/.xinitrc +9031e3379dca8dbdbe7ba912dba534a5 ./bin/agenda +b5741650892fe5b46a3a0ebeae12564f ./bin/.config/feeds/urls +34e26c94490913d0334af11586e998c6 ./bin/.config/feeds/read +6ef6750b88370845f127f9c2fc87bae2 ./bin/build +f45efcb066dc0523bc985a0bb3dfd1f0 ./bin/status-line +87e124ba4229c9449ec243850dba040e ./bin/www +5bb3cd175b718805f34caa175d1065d6 ./bin/config-link +20e88b35db04f592deb34aca33f2b4a7 ./bin/status +98fe40895963e32c19439275b78b7645 ./bin/dna +dba778ed068a22ddf80e511ab0efb7c7 ./bin/piano +78df2f19921fc5a38ed6f94d253d50e9 ./bin/adagio +2bb087bb53096d75786a22ac8c07c0f4 ./bin/version +c280a3c1b9b8ab9ec68637c583793f86 ./bin/config-git +9f19a5072a893dd09575e5c654d1686e ./bin/music +0b354d053c2c883b2c6bd372b2def60d ./bin/blawk +04ec66b55f8de1e99a238a0f6c866605 ./bin/config +c6589802addb38e02fd6772e78d0f499 ./bin/config-sync +737e26a09d6969324539a33203439265 ./bin/peax +c3f37ec795535e96469fc79ad2770587 ./bin/www.1 +1bc46973d70d14d9e8612f25aa914c79 ./bin/complete +7bfdd306a322560529b167219f48e885 ./bin/config-mail +216c467a40e09de40e4aa6412b89b89c ./bin/lightsaber +39962a15947d391697126dad91ecbe9f ./bin/config-vim +46dcbceb32e9738e0c02eea4a57dd1ea ./bin/drawk +30cca54feac6184f8dcb9d160942eee3 ./bin/buffers +ae8efa0c29e27dcee5c4b28977e38cc0 ./bin/theme +7e4fdb13505afa33d10e6fd743af8d9a ./abduco/config.h diff --git a/bin/version b/bin/version @@ -59,6 +59,16 @@ go_to_root() # +# Generate the md5sums for all targeted files of one repository. +# +md5sums() +{ + find . -type f ! -path "./.git/*" ! -path "./$DIR/*" -print0 | + xargs -0 md5sum +} + + +# # Create a new revision if something changed, then return success. # new_version() @@ -66,12 +76,12 @@ new_version() local current="$(mktemp)" date="$(date +'%0Y-%0m-%0d-%0H-%0M-%0S')" # generate the md5sums - find . -type f ! -path "./$DIR/*" -exec md5sum {} \; > "$current" + md5sums > "$current" local md5="$(md5sum "$current" | cut -c 1-32)" local last="$(ls "$DIR" | sort | tail -n 1)" - if [ -z "${last%%*-$md5}" -a -f "$last" ] + if [ -z "${last%%*-$md5}" -a -f "$DIR/$last" ] then rm "$current" die "nothing changed since \"$last\"" @@ -92,29 +102,51 @@ init() mkdir -p "$DIR" } + # # Compare current and foreign trees, pull the changes to both, trying to # merge correctly the difference. # merge() { - cd "$1" + local tree1="$(go_to_root; pwd)" + local tree2="$(cd "$1"; go_to_root; pwd)" + + local revision1="$(find "$tree1/$DIR" | tail -n 1)" + local revision2="$(find "$tree2/$DIR" | tail -n 1)" - new_version dir | { - read -r md5 current +# local revisions="$(ls "$tree1/$DIR"; ls "$tree2/$DIR")" - - } + # all the differences between trees at latest version + { + sed 's/^/1 /' "$revision1" + sed 's/^/2 /' "$revision2" + } | sort -k 2 | uniq -w 2 -u | while read -r revision hash path + do + grep #TODO remove the + done - local revisions="$( - { - ls "$DIR" - ls "$dir/$DIR" - } | sort - )" - local common="$(printf '%s\n' "$revisions" | uniq -d -f 1 | tail -n 1)" - printf '%s\n' "$revisions" | tac | sed "/$common/ q" | tac +# # sort revisions by date +# printf %s "$revisions" | sort -r | while IFS='-' read -r y m d H M S md5 +# do +# md5sums="$(printf '%s\n%s' "$md5" "$md5sums")" +# +# # rebuild the name +# printf '%s-' "y" "$m" "$d" "$H" "$M" "$S" "$md5" +# printf '%s\n' "$md5" +# done | tac + +# # line number of the revision that matches +# local number="$( +# printf '%s\n' "$revisions" | +# grep -n -x -F "$common" | # find common revisions +# tail -n 1 | # only keep the latest +# cut -d ':' -f 1 # extract line number +# )" +# +# # get different revisions since the latest common one +# printf '%s\n' "$revisions" | sed -n /$(($number + 1))'/,$ p' } @@ -126,11 +158,7 @@ status() local latest="$(ls "$DIR" | tail -n 1)" # list all different files between current state and latest state - find . -type f ! -path "./$DIR/*" -exec md5sum {} \; | - cat - "$DIR/$latest" | - sort -k 2 | - uniq -u | - uniq -f 1 | + md5sums | cat - "$DIR/$latest" | sort -k 2 | uniq -u | uniq -f 1 | while read -r md5 path do if [ -f "$path" ] && cut -c 35- "$DIR/$latest" | @@ -177,7 +205,7 @@ main() m | merge ) if [ -d "$2" ] then - if go_to_root + if (go_to_root) && (cd "$2" && go_to_root) then merge "$2" else diff --git a/shell/.profile b/shell/.profile @@ -1,23 +1,29 @@ # ---. ,-- * | # |__' .,-- ,--. |- , | ,--. # | | | | | | | |--' -# ' ' `--' ' ' ' `--' 2016-10-08 +# ' ' `--' ' ' ' `--' 2016-11-16 #------------------------------------------------------------------------------- # Shell configuration for any shell (dash, zsh, mksh, bash, busybox's ash...) # Prevents to be run twice [ "$PROFILE" ] && return 0 || PROFILE=1 -# Source other parts of shell configuration -CONFIG="$HOME/Config" -. "$CONFIG/shell/environment" -. "$CONFIG/shell/functions" +. "$HOME/Config/shell/environment" +export EMAIL="mail@josuah.net" -# PROMPT -#------------------------------------------------------------------------------- +export MAIL="$HOME/Mail/INBOX" +export ENV="$HOME/.profile" + +export EDITOR="vim" +export ALTERNATE_EDITOR="vi" +export VISUAL="$EDITOR" +export FCEDIT="$EDITOR" +export PAGER="less -R" +export MANPAGER="$PAGER" +export DVTM_EDITOR="$PAGER" -PS1='$( +export PS1='$( [ "$?" -eq 0 ] && color=32 || color=31 # status @@ -29,13 +35,10 @@ PS1='$( # prompt character printf "\n \033[30;1m──\033[0;1;%sm──────\033[0m " "$color" )' -PS2=' > ' -PS3=' > ' +export PS2=' > ' +export PS3=' > ' -# ALIAS -#------------------------------------------------------------------------------- - alias l='ls -F --color' alias ll='l -lh' alias la='l -A' @@ -55,13 +58,148 @@ alias myip='curl icanhazip.com' alias lines='find . -name "*.[ch]" | xargs wc -l' -# STARTUP -#------------------------------------------------------------------------------- +color() +{ + for in in in in + do + for i in 1 2 3 4 5 6 7 + do + printf ' \033[3%sm███\033[1m█\033[0m\033[3%sm███' $i $i + done + printf '\n' + done + +} + + +buildit() +{ + [ -f './autogen.sh' ] && ./autogen.sh + [ -f './configure' ] && ./configure --prefix="$PREFIX" + make && make clean PREFIX=$PREFIX install clean +} + + +extract() +{ + case "$1" in + *.tar.bz2) tar xvjf "$1" ;; + *.tar.gz ) tar xvzf "$1" ;; + *.bz2 ) bunzip2 "$1" ;; + *.rar ) unrar x "$1" ;; + *.gz ) gunzip "$1" ;; + *.tar ) tar xvf "$1" ;; + *.tbz2 ) tar xvjf "$1" ;; + *.tgz ) tar xvzf "$1" ;; + *.zip ) unzip "$1" ;; + *.Z ) uncompress "$1" ;; + *.7z ) 7z x "$1" ;; + *.xz ) xz -d "$1" ;; + *.deb ) ar vx "$1" ;; + * ) printf 'extract: Unknown archive type\n';; + esac +} + + +weather() +{ + curl -4 "wttr.in/$1" +} + + +# +# Remove spaces and other nasty characters from $1, recursively +# +sanitize() +{ + find . -mindepth 1 | tac | while IFS= read -r p + do mv "$p" "${p%/*}/$(printf %s "${p##*/}" \ + | sed 's/[^[:alnum:],._/+-]/_/g' + )" + done +} + + +# +# Transform a separator ($1) into '/': directory and subdirectory +# +split_at() +{ + find . | while read -r f + do + mkdir -p "${f%%$1*}" + mv "$f" "${f%%$1*}/${f#*$1}" + done +} + +# +# Remove prefix from all files in current directory up to "$1" separator +# +remove_prefix() +{ + find . | while read -r f + do mv "$f" "${f#*$1}" + done +} + + +light() +{ + printf '%s\n' "$1" | sudo tee "$( + sudo find -L /sys/class/backlight/ -maxdepth 2 -name brightness + )" +} + +mnt() +{ + sudo mount -o uid=$USER -o rw "${1-/dev/sdb1}" "${2-/mnt}" +} + +# +# Works only in tty and with sudo, sadly. +# +rotate() +{ + case "$1" in + u | up ) printf 0 ;; + r | right ) printf 1 ;; + d | down ) printf 2 ;; + l | left ) printf 3 ;; + esac | sudo tee /sys/class/graphics/fbcon/rotate_all > /dev/null +} + + +# +# FrameBuffer Video player based on mplayer +# +fbv() +{ + local x="$(sed 's/,.*//' /sys/class/graphics/fb0/virtual_size)" + local y="$(sed 's/.*,//' /sys/class/graphics/fb0/virtual_size)" + local video="$1" + + trap "kill -9 0" INT EXIT + + mplayer -vm -vo fbdev2 "$video" -vf scale -zoom -x "$x" -y "$y" +} + + +screencast() +{ + ffmpeg -video_size 1366x768 -framerate 25 -f x11grab -i :0.0 \ + ~/${1:-screencast}.mp4 +} + + +main() +{ + if [ "$TERM" = 'linux' ] + then + theme pink + setfont "$CONFIG/fonts/terminus/ter-v16n.psf.gz" + fi -if [ "$TERM" = 'linux' ] -then - theme pink - setfont "$CONFIG/fonts/terminus/ter-v16n.psf.gz" -fi + printf '\n\n' +} -printf '\n\n' +main diff --git a/shell/environment b/shell/environment @@ -1,41 +1,8 @@ -# ---- * | -# |__ ---. . , , .,-- ,--. ---. --.-. ,--. ---. |-- -# | | | \ / | | | | | | | | | |--' | | | -# ---- ' ' ' ' ' `--' ' ' ' ' ' `--' ' ' ' -#------------------------------------------------------------------------------- -# Environment variables +# Environment variables for the "build" script package manager # The right place would have been '.pam_environment', but Debian prevents # users to set $PATH in it, considering it as a security threat. -export EMAIL="mail@josuah.net" - - -# COMMANDS -#------------------------------------------------------------------------------- - -export EDITOR="vim" -export ALTERNATE_EDITOR="vi" -export VISUAL="$EDITOR" -export FCEDIT="$EDITOR" -export PAGER="less -R" -export MANPAGER="$PAGER" -export DVTM_EDITOR="$PAGER" - - -# DIRECTORIES -#------------------------------------------------------------------------------- - -export MAIL="$HOME/Mail/INBOX" -export ENV="$HOME/.profile" - - -# CONFIG PACKAGE MANAGER -#------------------------------------------------------------------------------- - - -# DIRECTORIES - export PROGRAMS="$HOME/Programs" export CONFIG="$HOME/Config" export LOCAL="$HOME/.local" @@ -43,9 +10,6 @@ export XDG_DATA_HOME="$HOME/.local/share" export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" - -# PATHS - export PATH="$LOCAL/bin/$dir:$PATH" export PATH="$LOCAL/bin:$CONFIG/bin:$PATH" export CPATH="$LOCAL/include:$CPATH" diff --git a/shell/functions b/shell/functions @@ -1,159 +0,0 @@ -# ---- | * -# |__ , , ---. ,--. |-- , ,--. ---. ,--- -# | | | | | | | | | | | | `--. -# ' `--` ' ' `--' ' ' `--' ' ' ---' 2016-10-08 -#------------------------------------------------------------------------------- -# POSIX shell functions for interactive use. - - -# APPEARANCE -#------------------------------------------------------------------------------- - -color() -{ - for in in in in - do - for i in 1 2 3 4 5 6 7 - do - printf ' \033[3%sm███\033[1m█\033[0m\033[3%sm███' $i $i - done - printf '\n' - done - -} - - -# MANAGE PROJECTS -#------------------------------------------------------------------------------- - -buildit() -{ - [ -f './autogen.sh' ] && ./autogen.sh - [ -f './configure' ] && ./configure --prefix="$PREFIX" - make && make clean PREFIX=$PREFIX install clean -} - -extract() -{ - case "$1" in - *.tar.bz2) tar xvjf "$1" ;; - *.tar.gz ) tar xvzf "$1" ;; - *.bz2 ) bunzip2 "$1" ;; - *.rar ) unrar x "$1" ;; - *.gz ) gunzip "$1" ;; - *.tar ) tar xvf "$1" ;; - *.tbz2 ) tar xvjf "$1" ;; - *.tgz ) tar xvzf "$1" ;; - *.zip ) unzip "$1" ;; - *.Z ) uncompress "$1" ;; - *.7z ) 7z x "$1" ;; - *.xz ) xz -d "$1" ;; - *.deb ) ar vx "$1" ;; - * ) printf 'extract: Unknown archive type\n';; - esac -} - - -# INTERACTION -#------------------------------------------------------------------------------- - -h() -{ - printf 'TERM=screen %s 2>&1' "$*" | sh -i | $PAGER -} - -weather() -{ - curl -4 "wttr.in/$1" -} - - -# RENAMING FILES -#------------------------------------------------------------------------------- - -# -# Remove spaces and other nasty characters from $1, recursively -# -sanitize() -{ - find . -mindepth 1 | tac | while IFS= read -r p - do mv "$p" "${p%/*}/$(printf %s "${p##*/}" \ - | sed 's/[^[:alnum:],._/+-]/_/g' - )" - done -} - -# -# Transform a separator ($1) into '/': directory and subdirectory -# -split_at() -{ - find . | while read -r f - do - mkdir -p "${f%%$1*}" - mv "$f" "${f%%$1*}/${f#*$1}" - done -} - -# -# Remove prefix from all files in current directory up to "$1" separator -# -remove_prefix() -{ - find . | while read -r f - do mv "$f" "${f#*$1}" - done -} - - -# HARDWARE -#------------------------------------------------------------------------------- - -light() -{ - printf '%s\n' "$1" | sudo tee "$( - sudo find -L /sys/class/backlight/ -maxdepth 2 -name brightness - )" -} - -mnt() -{ - sudo mount -o uid=$USER -o rw "${1-/dev/sdb1}" "${2-/mnt}" -} - -# -# Works only in tty and with sudo, sadly. -# -rotate() -{ - case "$1" in - u | up ) printf 0 ;; - r | right ) printf 1 ;; - d | down ) printf 2 ;; - l | left ) printf 3 ;; - esac | sudo tee /sys/class/graphics/fbcon/rotate_all > /dev/null -} - - -# VIDEO -#------------------------------------------------------------------------------- - -# -# FrameBuffer Video player based on mplayer -# -fbv() -{ - local x="$(sed 's/,.*//' /sys/class/graphics/fb0/virtual_size)" - local y="$(sed 's/.*,//' /sys/class/graphics/fb0/virtual_size)" - local video="$1" - - trap "kill -9 0" INT EXIT - - mplayer -vm -vo fbdev2 "$video" -vf scale -zoom -x "$x" -y "$y" -} - -screencast() -{ - ffmpeg -video_size 1366x768 -framerate 25 -f x11grab -i :0.0 \ - ~/${1:-screencast}.mp4 -}