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.
 
 
 
 
dotfiles/.bash_aliases

24 lines
497 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 ~/scripts/helper/scan_aliases.sh ]; then
source ~/scripts/helper/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