From f6de62700a9f1bfec1d80167ef9269c9d40cd07a Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 19 Jan 2020 19:14:40 -0800 Subject: [PATCH] Add a gitroot alias. --- dotfiles/aliases | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/aliases b/dotfiles/aliases index fa805b1..d396e9f 100755 --- a/dotfiles/aliases +++ b/dotfiles/aliases @@ -37,4 +37,7 @@ alias dircount="for d in * ; do find \$d -type d | wc -l | tr -d '\n' ; echo ' ' alias drop_caches="echo 3 | sudo /usr/bin/tee /proc/sys/vm/drop_caches" # dump acpi temperature -alias temp='printf "%02.2f\n" "$(cat /sys/class/thermal/thermal_zone0/temp)e-3"' +alias gettemp='printf "%02.2f\n" "$(cat /sys/class/thermal/thermal_zone0/temp)e-3"' + +# get git working directory +alias gitroot="git rev-parse --git-toplevel"