dot

packages and services management
Log | Files | Refs | README

commit 33191def15ad238fd504575134783e7f7c7cd0f1
parent 1801b7ce1733e035d971b5a3cfd7118d5374fb27
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 19 Mar 2018 10:40:21 +0100

fixes for OpenBSD

Diffstat:
M.profile | 5++---
Mbin/edit | 2+-
Mbin/xdg-open | 5+++--
Mconfigure | 6+++++-
Denchive/enchive.pub | 2--
Denchive/enchive.sec | 2--
6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/.profile b/.profile @@ -24,7 +24,8 @@ export LD_LIBRARY_PATH="$PACKROOT/lib" export PLAN9="/usr/lib/plan9" -export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin" +export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin" +export PATH="$PATH:/usr/X11R6/bin" export PATH="$HOME/etc/bin:$PACKROOT/bin:$PATH:$PLAN9/bin" export MANPATH="$HOME/etc/man:/usr/share/man:/usr/local/share/man:$PLAN9/man" @@ -49,8 +50,6 @@ export TWT_CONF="$HOME/.config/twt" export TWT_PATH="$HOME/var/twt" export TWT_FEED="$HOME/srv/twt/josuah" -export PKG_PATH="https://ftp.fr.openbsd.org/pub/OpenBSD/" - export SSH_AUTH_SOCK="/tmp/ssh-agent" export SVDIR="$HOME/run" diff --git a/bin/edit b/bin/edit @@ -8,4 +8,4 @@ cd "$(dirname "$@")" -exec vim "$@" +exec vi "$@" diff --git a/bin/xdg-open b/bin/xdg-open @@ -3,7 +3,7 @@ # override the xdg-open utility [ "$DISPLAY" ] && case "$(tty)" in -(/dev/pts/*) ;; +(/dev/pts/*|/dev/ttyp*) ;; (*) exec st -f terminus:pixelsize=16 -e "$0" "$@" ;; esac @@ -194,7 +194,7 @@ case "$1" in exec chromium "http://reddit.com/$1" ;; (*\([0-9]\)|*\([0-9]p\)) - exec man "${1%(*}" + exec man "${1%\(*}" ;; (*.torrent) exec transmission-cli "$1" @@ -278,4 +278,5 @@ case "$1" in [ -f "$1" ] && exec $EDITOR "$1" [ -d "$1" ] && exec "$0" "$(io-find "$1")" ;; + esac diff --git a/configure b/configure @@ -3,7 +3,8 @@ cd "$0/.." . ./.profile -mkdir -p "$HOME/var" "$SVDIR" + +mkdir -p "$HOME/var" "$SVDIR" "$HOME/.config/enchive" # symlink ~/etc/* into ~/.config/* find * -path './runit/*' -prune \ @@ -17,3 +18,6 @@ find .* -name .git -prune -o -name . -prune -o -name .. -prune \ -o -type l -exec sh -c 'ln -sf "$PWD/$0" "$HOME/$0"' {} \; find -L "$HOME" -type l -exec rm {} + + +ln -s /mnt/key/enchive.pub "$HOME/.config/enchive/enchive.pub" +ln -s /mnt/key/enchive.sec "$HOME/.config/enchive/enchive.sec" diff --git a/enchive/enchive.pub b/enchive/enchive.pub @@ -1 +0,0 @@ -/mnt/key/enchive.pub- \ No newline at end of file diff --git a/enchive/enchive.sec b/enchive/enchive.sec @@ -1 +0,0 @@ -/mnt/key/enchive.sec- \ No newline at end of file