# * functions
-### begin FSF section ###
-# use for temporary functions
+# temporary functions
y() {
m "${@//spring/fall}"
}
}
+### begin FSF section ###
+
# Comments before functions are meant to be good useful
# documentation. If they fail at that, please improve them or send Ian a
# note.
eval $c $*
}
-## directory history tracking and navigation.
+## BEGIN directory history tracking and navigation.
#
-# cd becomes a function, also aliased to c. b to go back, f to go
-# forward, cl to list recent directories and choose one.
+# use c instead of cd (could alias to cd if you wanted). b to go back, f
+# to go forward, cl to list recent directories and choose one.
#
# The finer details you may want to skip:
#
alines[$line]=t
buttondirs[${buttons[i]}]="$line"
printf "%s %s\n" ${buttons[i]} "$line"
- if (( i == ${#buttons[@]} - 1 )); then
+ # the LINES bit is for when we have a short terminal, just dont print all
+ # the directories. alternative would be to do something like less the list.
+ if (( i == ${#buttons[@]} - 1 )) || { [[ $LINES ]] && (( i == LINES - 3 )); }; then
break
fi
i=$(( i + 1 ))
c "${buttondirs[$input]}"
fi
}
-# back list
+# list the back and forward directories. i tend to forget this exists
+# and use cl instead.
bl() {
local start i j max
max=10
}
n() {
dunstify -u critical n
+ _psrun=(dunstctl close-all)
}
catnew() {