diff --git a/fish/aliases.config.fish b/fish/aliases.config.fish index efd5151..7e8e9d7 100644 --- a/fish/aliases.config.fish +++ b/fish/aliases.config.fish @@ -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 diff --git a/os/aliases.config.fish b/os/aliases.config.fish index 6803958..6056e79 100644 --- a/os/aliases.config.fish +++ b/os/aliases.config.fish @@ -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