dot

packages and services management
Log | Files | Refs | README

commit 13b45f562c79a940af28ba83c63b9e02cbbbca58
parent 89cae821eb2b78da633b12ee3a9b1b3e80c46795
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sun,  4 Jun 2017 09:31:49 +0200

support legacy tmux versions

Diffstat:
Mbin/io | 2+-
Angircd/build | 6++++++
Mservice | 13++++++++++---
Msetup | 4+---
Mtmux/.tmux.conf | 21---------------------
Mvar/url | 1+
6 files changed, 19 insertions(+), 28 deletions(-)

diff --git a/bin/io b/bin/io @@ -77,7 +77,7 @@ END { }' "$HOME/.cache/find" printf '# %s\n' url - cat "$HOME"/var/url/* "$ETC/url" + cat "$HOME"/var/url/* "$ETC/var/url" cut -d ' ' -f 1 "$HOME/.ssh/known_hosts" | sed -r 's|^|ssh://root@|' } | iomenu -p io -s -h | cut -c 3-` diff --git a/ngircd/build b/ngircd/build @@ -0,0 +1,6 @@ +export CFLAGS="-static -I$ROOT/lib" +export LDFLAGS="-L$ROOT/lib" + +./configure --prefix="$PREFIX" + +make && make install diff --git a/service b/service @@ -11,16 +11,22 @@ stop() sh "$ETC/$2/stop" } +status() +{ + : +} + usage() { - printf 'service start|stop name\n' + echo 'service { start | stop | restart | status } name' exit 1 } # --- main --------------------------------------------------------------------- -[ $# -lt 2 ] || usage +[ $# -lt 2 ] && usage +[ -f "$ETC/$2/$1" ] || echo "service script $ETC/$2/$1 not found" cd "$2" || exit 1 command=$1 @@ -29,5 +35,6 @@ case "$1" in ( start ) start "$@" ;; ( stop ) stop "$@" ;; ( restart ) stop "$@" && start "$@" ;; -( * ) usage ;; +( status ) status ;; +( * ) usage ;; esac diff --git a/setup b/setup @@ -1,6 +1,4 @@ -ETC=$(cd "$(dirname "$0")" && pwd) -GIT=$HOME/git -MAIL=$HOME/var/mail +. "$(dirname "$0")/profile" usage() diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -11,11 +11,6 @@ unbind C-b bind C-Space send-key C-Space -# copy mode - -bind -n PPage if -F '#{alternate_on}' 'send PPage' 'copy -e; send PPage' - - # pane management bind -r k select-pane -U @@ -48,18 +43,6 @@ bind -n C-z detach bind r source ~/.config/tmux/conf\; display "Config loaded" -# --- hooks -------------------------------------------------------------------- - -set-hook -g after-select-pane 'refresh-client -S' -set-hook -g after-select-window 'refresh-client -S' -set-hook -g after-select-window 'refresh-client -S' -set-hook -g after-next-window 'refresh-client -S' -set-hook -g after-previous-window 'refresh-client -S' -set-hook -g after-choose-tree 'refresh-client -S' -set-hook -g after-switch-client 'refresh-client -S' -set-hook -g after-delete-buffer 'refresh-client -S' - - # --- options ------------------------------------------------------------------ set -g base-index 1 @@ -125,7 +108,3 @@ set -g window-status-activity-style fg=white,bg=yellow # borders set -g pane-border-style bold,fg=white -set -g pane-active-border-style bold,fg=white -set -g pane-border-status top -set -g pane-border-format \ - "#{?pane_active,#[fg=white],#[fg=black]} #{pane_current_command} " diff --git a/var/url b/var/url @@ -3,6 +3,7 @@ irc://irc.oftc.net:6697 irc://unix.chat:6697 irc://irc.cyberia.is:6697 irc://irc.scalix.gandi.net:6667 +irc://irc.lainchan.org:6697 gopher://bitreich.org gopher://z3bra.org gopher://r-36.net