diff --git a/fish/aliases.config.fish b/fish/aliases.config.fish index 1f843f9..9be14a0 100644 --- a/fish/aliases.config.fish +++ b/fish/aliases.config.fish @@ -4,9 +4,9 @@ # Shell aliases. abbr -a rl --position command "source ~/.config/fish/config.fish" -abbr -a c --position command "clear" -abbr -a e --position command "$EDITOR" -abbr -a v --position command "$EDITOR" +abbr -a c --position command clear +abbr -a e --position command "$EDITOR" +abbr -a v --position command "$EDITOR" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -34,14 +34,6 @@ abbr -a rm --position command "rm -rf" # └─ recursively remove directories and files # Colored grep output. -abbr -a grep --position command "grep --color=auto" +abbr -a grep --position command "grep --color=auto" abbr -a fgrep --position command "fgrep --color=auto" abbr -a egrep --position command "egrep --color=auto" - -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -if [ "$(uname)" = "Darwin" ] - abbr -a o --position command "open" -else if [ "$(uname)" = "Linux" ] - abbr -a o --position command "xdg-open" -end diff --git a/os/aliases.config.fish b/os/aliases.config.fish new file mode 100644 index 0000000..653d665 --- /dev/null +++ b/os/aliases.config.fish @@ -0,0 +1,9 @@ +#!/usr/bin/env fish + +if [ "$(uname)" = Darwin ] + abbr -a afk --position command "osascript -e 'tell application \"System Events\" to sleep'" + abbr -a o --position command open + +else if [ "$(uname)" = Linux ] + abbr -a o --position command xdg-open +end