Add more localbin-s - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 89f582e3c29a5775d6289753d3965a871d887847
(DIR) parent b966cb4601098f568585eb76f76c5451ab4413e8
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 10 May 2019 23:50:47
Add more localbin-s
Diffstat:
less | 11 +++++++++++
tmux | 14 ++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff -r b966cb460109 -r 89f582e3c29a less
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/less Fri May 10 23:50:47 2019 +0200
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#
+# Invoke pkgsrc less if available, falling back to base one.
+#
+
+if [ -x /usr/pkg/bin/less ]; then
+ exec /usr/pkg/bin/less "$@"
+fi
+
+/usr/bin/less "$@"
diff -r b966cb460109 -r 89f582e3c29a tmux
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tmux Fri May 10 23:50:47 2019 +0200
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+#
+# Create local cache directory for tmux.
+# Invoke pkgsrc tmux if available, falling back to base one.
+#
+
+mkdir -p "${XDG_CACHE_HOME}/tmux/"
+
+if [ -x /usr/pkg/bin/tmux ]; then
+ exec /usr/pkg/bin/tmux "$@"
+fi
+
+exec /usr/bin/tmux "$@"