commit d1d780f3b733cd6d7e350c5b1b3df0e02eb7dff2 (patch)
parent fc6414a54387064dc56d337a9e7dd95303b88350
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 4 Oct 2020 14:39:01 -0400
cfg: Promote cfg (dotfile management) alias to a shell script
The advantage here is that I can run it in other programs (cough ed cough)
rather than only be available in login shells.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.aliases b/.aliases
@@ -38,9 +38,6 @@ alias vlg='vim -c "GV"' # 'vim log' of a file
alias curljson='curl -H "Content-Type: application/json"'
alias sysmail='mutt -f /var/mail/$USER'
-# Dotfile management
-alias cfg='git --git-dir=$HOME/.cfg --work-tree=$HOME'
-
# Lightweight funcs
aw() { w3m "https://wiki.archlinux.org/index.php?search=$1"; }
ddg() { w3m "https://duckduckgo.com/lite?q=$1"; }
diff --git a/bin/cfg b/bin/cfg
@@ -0,0 +1,3 @@
+#!/bin/sh
+# cfg -- manage dotfiles with pure git
+exec git --git-dir=$HOME/.cfg --work-tree=$HOME "$@"