aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2024-03-03 13:32:56 +0800
committerGuangxiong Lin <[email protected]>2024-03-03 13:32:56 +0800
commitf3388ed729f8d8463b31a7166332a7ac6b389047 (patch)
treebdf744347496a980b843a6bca2d0c2ef62018bcf
parentcf1b8d1b947f1213ce02bb8fcf04001509aab68b (diff)
downloaddotfiles-f3388ed729f8d8463b31a7166332a7ac6b389047.tar.gz
dotfiles-f3388ed729f8d8463b31a7166332a7ac6b389047.tar.bz2
dotfiles-f3388ed729f8d8463b31a7166332a7ac6b389047.zip
Add alias for hledger
-rw-r--r--.aliases5
1 files changed, 5 insertions, 0 deletions
diff --git a/.aliases b/.aliases
index 40f2084..4a3136d 100644
--- a/.aliases
+++ b/.aliases
@@ -21,4 +21,9 @@ command -v tig &> /dev/null && alias tigs='tig status'
alias g='git'
+if command -v hledger &> /dev/null && \
+ [ -f "$HOME/.hledger" ]; then
+ alias hledger="$(command -v hledger) @$HOME/.hledger"
+fi
+
# vim: ft=sh