Skip to content

Commit

Permalink
bash: add alias for linux "eject" (old muscle memory)
Browse files Browse the repository at this point in the history
  • Loading branch information
damncabbage committed Feb 16, 2024
1 parent 1c9e4ec commit 9196d98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ if [ "${IS_MAC:-}" ]; then
alias lsusb="ioreg -p IOUSB -w 0"
fi

# Disk
if [ "${IS_MAC:-}" ]; then
alias eject="diskutil eject" # disk device *or* mountpoint is fine here
fi

# Vim
vis() {
DIR="${1:-.}"
Expand Down

0 comments on commit 9196d98

Please sign in to comment.