✨ Add aliases
This commit is contained in:
parent
b183bcc9c0
commit
e2ef5996a5
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue