refractor(macOS): Better setup script for macOS

This commit is contained in:
js0ny 2025-02-11 03:22:40 +00:00
parent 1804960bfc
commit cd7b6c70f0
14 changed files with 538 additions and 311 deletions

View file

@ -7,6 +7,27 @@
# Linking: Link the whole directory for submodules
# ln -sf $DOTFILES/tools/fish ~/.config/fish
switch (uname)
case "Darwin"
# macOS Specific
abbr --add clip pbcopy
abbr --add paste pbpaste
# Use GNU Coreutils
alias cp=gcp
alias ln=gln
alias mkdir=gmkdir
alias mv=gmv
alias rm=grm
alias rmdir=grmdir
alias touch=gtouch
abbr --add reboot "sudo reboot"
case "Linux"
# Linux Specific
case '*'
# Default / Fallback case
end
# Powershell equivalent
abbr --add ni touch
abbr --add cls clear