You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
503 B
24 lines
503 B
_f_do_as() {
|
|
local file_name="$1"
|
|
shift # Remove the first argment (the file)
|
|
if [ -r "$file_name" ]; then
|
|
$@
|
|
else
|
|
$USE_SUPER $@
|
|
fi
|
|
}
|
|
|
|
if [ -f ~/dotfiles/scripts/scan_aliases.sh ]; then
|
|
source "~/dotfiles/scripts/scan_aliases.sh"
|
|
else
|
|
SANE_TEST_FAILED=0
|
|
fi
|
|
|
|
if [ $SANE_TEST_FAILED -eq 0 ]; then
|
|
# Load aliases from ~/.aliases.d
|
|
if [ -d ~/.aliases.d ]; then
|
|
for f in ~/.aliases.d/*.sh; do
|
|
[ -r "$f" ] && . "$f"
|
|
done
|
|
fi
|
|
fi
|
|
|