dotfiles/os/aliases.config.fish

23 lines
693 B
Fish
Raw Normal View History

2024-02-02 18:43:42 -08:00
#!/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
2024-02-04 21:19:24 -08:00
function trash -d "Move a file to the trash"
mv "$argv" ~/.Trash
end
2024-02-02 18:43:42 -08:00
else if [ "$(uname)" = Linux ]
2024-02-02 19:09:51 -08:00
abbr -a afk --position command "gnome-screensaver-command --lock"
2024-02-02 18:43:42 -08:00
abbr -a o --position command xdg-open
2024-02-02 19:09:51 -08:00
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# APT.
abbr -a apti --position command "sudo apt install"
abbr -a aptr --position command "sudo apt remove"
abbr -a aptu --position command "sudo apt update && sudo apt upgrade"
2024-02-02 18:43:42 -08:00
end