From a0abdc5c713f62511d67280a197f4719bf670082 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 4 Jan 2022 23:14:56 -0500 Subject: [PATCH] bin: Add command shortcuts as scripts This is preferable to alias' so that they can be used in shell-escapes (i.e. !g d in ed(1)). --- .shrc | 1 - bin/g | 2 ++ bin/p | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 bin/g create mode 100755 bin/p diff --git a/.shrc b/.shrc index 531c6e9..fd5b957 100644 --- a/.shrc +++ b/.shrc @@ -7,4 +7,3 @@ export EDITOR=ed export VISUAL=vi alias ll='ls -lahF' -alias g='git' diff --git a/bin/g b/bin/g new file mode 100755 index 0000000..2f651b6 --- /dev/null +++ b/bin/g @@ -0,0 +1,2 @@ +#!/bin/sh +exec git "$@" diff --git a/bin/p b/bin/p new file mode 100755 index 0000000..3091a99 --- /dev/null +++ b/bin/p @@ -0,0 +1,2 @@ +#!/bin/sh +exec ${PAGER:-less} "$@" -- libgit2 1.1.1