dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 03ec0aaa3c99e5cd23e4b29ac4efa51049df76d6
parent e8343ef0a9682a6bbce4418911fd491de6762bc9
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 28 Dec 2020 11:59:12 +0100

pfetch, shfm, posix bible

These are all lightweight and useful. Plus added an alias to look up how
to do something in POSIX shell via the bible.

Diffstat:
M.gitmodules | 9+++++++++
Adocs/pbib | 1+
Mshell/aliases | 1+
Mshell/paths | 28+++++++++++++++-------------
Atools/pfetch | 1+
Atools/shfm | 1+
6 files changed, 28 insertions(+), 13 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -44,3 +44,12 @@ [submodule "tools/LocalCDN"] path = tools/LocalCDN url = https://codeberg.org/nobody/LocalCDN.git +[submodule "tools/shfm"] + path = tools/shfm + url = https://github.com/dylanaraps/shfm +[submodule "tools/pfetch"] + path = tools/pfetch + url = https://github.com/dylanaraps/pfetch +[submodule "docs/pbib"] + path = docs/pbib + url = https://github.com/dylanaraps/pure-sh-bible.git diff --git a/docs/pbib b/docs/pbib @@ -0,0 +1 @@ +Subproject commit cd6e426a50eb07497b9c5bf763aec53744410568 diff --git a/shell/aliases b/shell/aliases @@ -29,3 +29,4 @@ alias mbsync='mbsync -c $HOME/.config/mbsync/mbsyncrc' alias mutt='{ [ -f "$BW_SESHFILE" ] && BW_SESSION="$(cat $BW_SESHFILE)" neomutt; } || BW_SESSION="$(bw unlock --raw)" neomutt;' [ -n "$VIM_TERMINAL" ] && alias vim=vimsend { [ -f ~/.config/dark-theme ] && alias bat="bat --theme=1337 --color=always"; } || alias bat="bat --theme=GitHub --color=always" +[ -f "$DOTFILES"/docs/pbib/README.md ] && alias pbib='vim +$(nl -b a '$DOTFILES"/docs/pbib/README.md | fzf --with-nth 2.. -e -q '^# ' | sed 's/[^0-9]//g') "$DOTFILES"/docs/pbib/README.md" diff --git a/shell/paths b/shell/paths @@ -1,17 +1,19 @@ #!/bin/sh [ -x /usr/libexec/path_helper ] && unset PATH && eval "$(/usr/libexec/path_helper -s)" -[ -d "$HOME/.local/bin" ] || [ -L "$HOME/.local/bin" ] && [ -n "${PATH##*"$HOME/.local/bin"*}" ] && PATH="$HOME/.local/bin:$PATH" -[ -d "$HOME/go/bin" ] || [ -L "$HOME/go/bin" ] && [ -n "${PATH##*"$HOME/go/bin"*}" ] && PATH="$HOME/go/bin:$PATH" -[ -d "/usr/local/opt/util-linux/bin" ] || [ -L "/usr/local/opt/util-linux/bin" ] && [ -n "${PATH##*"/usr/local/opt/util-linux/bin"*}" ] && PATH="/usr/local/opt/util-linux/bin:$PATH" -[ -d "$HOME/.config/.ghcup/bin" ] || [ -L "$HOME/.config/.ghcup/bin" ] && [ -n "${PATH##*"$HOME/.config/.ghcup/bin"*}" ] && PATH="$HOME/.config/.ghcup/bin:$PATH" -[ -d "/usr/local/sbin" ] || [ -L "/usr/local/sbin" ] && [ -n "${PATH##*"/usr/local/sbin"*}" ] && PATH="/usr/local/sbin:$PATH" -[ -d "/usr/local/opt/coreutils/libexec/gnubin" ] || [ -L "/usr/local/opt/coreutils/libexec/gnubin" ] && [ -n "${PATH##*"/usr/local/opt/coreutils/libexec/gnubin"*}" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" -[ -d "$HOME/.local/gnat/bin" ] || [ -L "$HOME/.local/gnat/bin" ] && [ -n "${PATH##*"$HOME/.local/gnat/bin"*}" ] && PATH="$HOME/.local/gnat/bin:$PATH" -[ -d "$HOME/bin" ] || [ -L "$HOME/bin" ] && [ -n "${PATH##*"$HOME/bin"*}" ] && PATH="$HOME/bin:$PATH" -[ -d "$HOME/.bin" ] || [ -L "$HOME/.bin" ] && [ -n "${PATH##*"$HOME/.bin"*}" ] && PATH="$HOME/.bin:$PATH" -[ -d "$HOME/.scripts" ] || [ -L "$HOME/.scripts" ] && [ -n "${PATH##*"$HOME/.scripts"*}" ] && PATH="$HOME/.scripts:$PATH" -[ -d "$HOME/.local/share/gems/bin" ] || [ -L "$HOME/.local/share/gems/bin" ] && [ -n "${PATH##*"$HOME/.local/share/gems/bin"*}" ] && PATH="$HOME/.local/share/gems/bin:$PATH" -[ -d "$HOME/.elan/bin" ] && [ -n "${PATH##*"$HOME/.elan/bin"*}" ] && PATH="$HOME/.elan/bin:$PATH" -[ -d /usr/local/opt/man-db/libexec/bin ] && [ -n "${PATH##*"/usr/local/opt/man-db/libexec/bin"*}" ] && PATH="/usr/local/opt/man-db/libexec/bin:$PATH" +[ -d "$HOME/.local/bin" ] || [ -L "$HOME/.local/bin" ] && [ -n "${PATH##*"$HOME/.local/bin"*}" ] && PATH="$HOME/.local/bin:$PATH" +[ -d "$HOME/go/bin" ] || [ -L "$HOME/go/bin" ] && [ -n "${PATH##*"$HOME/go/bin"*}" ] && PATH="$HOME/go/bin:$PATH" +[ -d "/usr/local/opt/util-linux/bin" ] || [ -L "/usr/local/opt/util-linux/bin" ] && [ -n "${PATH##*"/usr/local/opt/util-linux/bin"*}" ] && PATH="/usr/local/opt/util-linux/bin:$PATH" +[ -d "$HOME/.config/.ghcup/bin" ] || [ -L "$HOME/.config/.ghcup/bin" ] && [ -n "${PATH##*"$HOME/.config/.ghcup/bin"*}" ] && PATH="$HOME/.config/.ghcup/bin:$PATH" +[ -d "/usr/local/sbin" ] || [ -L "/usr/local/sbin" ] && [ -n "${PATH##*"/usr/local/sbin"*}" ] && PATH="/usr/local/sbin:$PATH" +[ -d "/usr/local/opt/coreutils/libexec/gnubin" ] || [ -L "/usr/local/opt/coreutils/libexec/gnubin" ] && [ -n "${PATH##*"/usr/local/opt/coreutils/libexec/gnubin"*}" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" +[ -d "$HOME/.local/gnat/bin" ] || [ -L "$HOME/.local/gnat/bin" ] && [ -n "${PATH##*"$HOME/.local/gnat/bin"*}" ] && PATH="$HOME/.local/gnat/bin:$PATH" +[ -d "$HOME/bin" ] || [ -L "$HOME/bin" ] && [ -n "${PATH##*"$HOME/bin"*}" ] && PATH="$HOME/bin:$PATH" +[ -d "$HOME/.bin" ] || [ -L "$HOME/.bin" ] && [ -n "${PATH##*"$HOME/.bin"*}" ] && PATH="$HOME/.bin:$PATH" +[ -d "$HOME/.scripts" ] || [ -L "$HOME/.scripts" ] && [ -n "${PATH##*"$HOME/.scripts"*}" ] && PATH="$HOME/.scripts:$PATH" +[ -d "$HOME/.local/share/gems/bin" ] || [ -L "$HOME/.local/share/gems/bin" ] && [ -n "${PATH##*"$HOME/.local/share/gems/bin"*}" ] && PATH="$HOME/.local/share/gems/bin:$PATH" +[ -d "$HOME/.elan/bin" ] && [ -n "${PATH##*"$HOME/.elan/bin"*}" ] && PATH="$HOME/.elan/bin:$PATH" +[ -d /usr/local/opt/man-db/libexec/bin ] && [ -n "${PATH##*"/usr/local/opt/man-db/libexec/bin"*}" ] && PATH="/usr/local/opt/man-db/libexec/bin:$PATH" +[ -d "$DOTFILES/tools/shfm" ] && [ -n "${PATH##*"$DOTFILES/tools/shfm"*}" ] && PATH="$DOTFILES/tools/shfm:$PATH" +[ -d "$DOTFILES/tools/pfetch" ] && [ -n "${PATH##*"$DOTFILES/tools/pfetch"*}" ] && PATH="$DOTFILES/tools/pfetch:$PATH" command -v rbenv 1>/dev/null 2>&1 && eval "$(rbenv init -)" export PATH diff --git a/tools/pfetch b/tools/pfetch @@ -0,0 +1 @@ +Subproject commit 4498da8f54d3f7df11d0d241b89d934e90a9008f diff --git a/tools/shfm b/tools/shfm @@ -0,0 +1 @@ +Subproject commit 892017875386d31970bd7329c19646469ccf2676