Skip to content

Commit

Permalink
2024-08-01 updates; bump to 1.0.5
Browse files Browse the repository at this point in the history
- Add `mz` to reload Bash Macros source.
- Fixed `ma` to correctly work with history, at least on macOS.
- Updated `md` to display the alias the was deleted.
- Added `VERSION` file to hold next version, if code in `main` updated.
  • Loading branch information
mikeschinkel committed Aug 1, 2024
1 parent b9df26a commit abc2780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.05
v1.05
7 changes: 4 additions & 3 deletions bash-macros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ function bash_macros_reload() {

function bash_macro_delete() {
local a
a="$(alias m$1 2>/dev/null)"
if [ "${a}}" == "" ] ; then
a="$(alias "m$1" 2>/dev/null)"
if [ "${a}" == "" ] ; then
echo "Macro m$1 not found"
else
echo "$(alias m$1) deleted"
echo "$(alias "m$1") deleted"
unalias "m$1" 2>/dev/null
fi
}
Expand Down Expand Up @@ -303,3 +303,4 @@ function bash_macros_backup() {
}

bash_macros_reload assigned

0 comments on commit abc2780

Please sign in to comment.