mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
refractor(macOS): Better setup script for macOS
This commit is contained in:
parent
1804960bfc
commit
cd7b6c70f0
14 changed files with 538 additions and 311 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue