commit 8c127d7be9f71dffcf4f3393ca8e356d3115772c
parent 2494447c15d22d431694b5b4a8dc9b42fcab0b76
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 26 Feb 2019 18:15:47 +0100
hr now uses tput instead of env variables
Former-commit-id: 2a0b4643fd2b7f6bb7f0f3433ca039e3ee8d3726
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/commonprofile b/shell/commonprofile
@@ -126,7 +126,7 @@ procinfo() { ps aux | grep "$1"; } # Ge
rmempty() { find "${1-.}" -type d -empty -depth -delete; } # Remove empty directories
todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO"; } # Find TODO comments
find_in_files() { grep -rnw "$1" -e "$2"; } # Search for text in files
-hr() { for ((i=0; i<COLUMNS; i++)); do echo -n "#"; done; echo; } # Insert a <hr> in the terminal
+hr() { for ((i=0; i<$(tput cols); i++)); do echo -n "#"; done; echo; } # Insert a <hr> in the terminal
vimq() { vim -v -q <($(fc -nl -1)); } # Load results of last command (often ag) in vim quickfix
# Pip3 upgrade packages