Add aliases

This commit is contained in:
punkfairie 2024-02-04 21:19:24 -08:00
parent b183bcc9c0
commit e2ef5996a5
No known key found for this signature in database
GPG key ID: 0858B0F48128A755
2 changed files with 16 additions and 0 deletions

View file

@ -40,6 +40,18 @@ abbr -a egrep --position command "egrep --color=auto"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Combinations.
function mkcd -d "Make a directory and CD into it"
mkdir "$argv" && cd "$argv"
end
function cdls -d "CD into a directory and list its contents"
cd "$argv" && ls
end
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# eza.
function ls --wraps eza

View file

@ -4,6 +4,10 @@ if [ "$(uname)" = Darwin ]
abbr -a afk --position command "osascript -e 'tell application \"System Events\" to sleep'"
abbr -a o --position command open
function trash -d "Move a file to the trash"
mv "$argv" ~/.Trash
end
else if [ "$(uname)" = Linux ]
abbr -a afk --position command "gnome-screensaver-command --lock"
abbr -a o --position command xdg-open