home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make a bar constructor function
[khome.git]
/
home
/
lib
/
login_functions.sh
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
193f4be
..
97de4b9
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-425,6
+425,14
@@
gh_clone_repo() {
git clone "$1"
}
git clone "$1"
}
+bar() {
+ local -r len="${1:-79}" # 1st arg or 79.
+ local -r char="${2:--}" # 2nd arg or a dash.
+ for _ in {1.."$len"}; do
+ printf '%c' "$char";
+ done
+}
+
daily_todo_file_template() {
cat << EOF
===============================================================================
daily_todo_file_template() {
cat << EOF
===============================================================================
This page took
0.029448 seconds
and
4
git commands to generate.