From c1a63e465884fadd2e8ec047c37a8cdefe6fbca0 Mon Sep 17 00:00:00 2001 From: whoami Date: Sat, 27 Sep 2025 16:00:34 +0100 Subject: [PATCH] chezmoi: macOS --- .gitignore | 3 - home/.chezmoiignore.tmpl | 12 +- .../complex_modifications/1739653723.json | 0 .../complex_modifications/1741027882.json | 0 .../dot_config/karabiner/dot_gitignore | 0 .../dot_config}/karabiner/karabiner.json | 0 .../dot_config}/karabiner/readme.md | 0 .../sketchybar/executable_sketchybarrc | 0 .../sketchybar/executable_variables.sh | 0 .../sketchybar/items/executable_battery.sh | 0 .../sketchybar/items/executable_calendar.sh | 0 .../sketchybar/items/executable_clock.sh | 0 .../sketchybar/items/executable_cpu.sh | 0 .../sketchybar/items/executable_front_app.sh | 0 .../sketchybar/items/executable_memory.sh | 0 .../sketchybar/items/executable_spaces.sh | 0 .../sketchybar/items/executable_spotify.sh | 0 .../sketchybar/items/executable_volume.sh | 0 .../sketchybar/plugins/executable_calendar.sh | 0 .../sketchybar/plugins/executable_clock.sh | 0 .../sketchybar/plugins/executable_cpu.sh | 0 .../plugins/executable_front_app.sh | 0 .../sketchybar/plugins/executable_memory.sh | 0 .../sketchybar/plugins/executable_power.sh | 0 .../sketchybar/plugins/executable_sound.sh | 0 .../sketchybar/plugins/executable_space.sh | 0 .../sketchybar/plugins/executable_spotify.sh | 0 .../mac => home/dot_config/skhd}/skhdrc | 0 .../mac => home/dot_config/yabai}/yabairc | 0 .../Keybindings}/DefaultKeyBinding.dict | 0 .../mac/etc/nix-darwin/default-system.nix | 113 ------------------ platforms/mac/etc/nix-darwin/flake.nix | 52 -------- platforms/mac/fastfetch.jsonc | 54 --------- platforms/mac/neovide.toml | 25 ---- platforms/mac/pwshProfile.ps1 | 23 ---- platforms/mac/readme.md | 0 .../mac/shortcuts/finder_open.applescript | 4 - platforms/mac/zshrc | 8 -- {platforms => tools}/mac/etc/pam.d/sudo | 0 39 files changed, 10 insertions(+), 284 deletions(-) rename {platforms/mac => home/dot_config}/karabiner/assets/complex_modifications/1739653723.json (100%) rename {platforms/mac => home/dot_config}/karabiner/assets/complex_modifications/1741027882.json (100%) rename platforms/mac/karabiner/.gitignore => home/dot_config/karabiner/dot_gitignore (100%) rename {platforms/mac => home/dot_config}/karabiner/karabiner.json (100%) rename {platforms/mac => home/dot_config}/karabiner/readme.md (100%) rename platforms/mac/sketchybar/sketchybarrc => home/dot_config/sketchybar/executable_sketchybarrc (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/variables.sh => home/dot_config/sketchybar/executable_variables.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/battery.sh => home/dot_config/sketchybar/items/executable_battery.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/calendar.sh => home/dot_config/sketchybar/items/executable_calendar.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/clock.sh => home/dot_config/sketchybar/items/executable_clock.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/cpu.sh => home/dot_config/sketchybar/items/executable_cpu.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/front_app.sh => home/dot_config/sketchybar/items/executable_front_app.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/memory.sh => home/dot_config/sketchybar/items/executable_memory.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/spaces.sh => home/dot_config/sketchybar/items/executable_spaces.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/spotify.sh => home/dot_config/sketchybar/items/executable_spotify.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/items/volume.sh => home/dot_config/sketchybar/items/executable_volume.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/calendar.sh => home/dot_config/sketchybar/plugins/executable_calendar.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/clock.sh => home/dot_config/sketchybar/plugins/executable_clock.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/cpu.sh => home/dot_config/sketchybar/plugins/executable_cpu.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/front_app.sh => home/dot_config/sketchybar/plugins/executable_front_app.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/memory.sh => home/dot_config/sketchybar/plugins/executable_memory.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/power.sh => home/dot_config/sketchybar/plugins/executable_power.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/sound.sh => home/dot_config/sketchybar/plugins/executable_sound.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/space.sh => home/dot_config/sketchybar/plugins/executable_space.sh (100%) mode change 100755 => 100644 rename platforms/mac/sketchybar/plugins/spotify.sh => home/dot_config/sketchybar/plugins/executable_spotify.sh (100%) mode change 100755 => 100644 rename {platforms/mac => home/dot_config/skhd}/skhdrc (100%) rename {platforms/mac => home/dot_config/yabai}/yabairc (100%) rename {platforms/mac => home/private_Library/Keybindings}/DefaultKeyBinding.dict (100%) delete mode 100644 platforms/mac/etc/nix-darwin/default-system.nix delete mode 100644 platforms/mac/etc/nix-darwin/flake.nix delete mode 100644 platforms/mac/fastfetch.jsonc delete mode 100644 platforms/mac/neovide.toml delete mode 100644 platforms/mac/pwshProfile.ps1 delete mode 100644 platforms/mac/readme.md delete mode 100644 platforms/mac/shortcuts/finder_open.applescript delete mode 100644 platforms/mac/zshrc rename {platforms => tools}/mac/etc/pam.d/sudo (100%) diff --git a/.gitignore b/.gitignore index 7b20e54..c65c640 100644 --- a/.gitignore +++ b/.gitignore @@ -7,9 +7,6 @@ dot_config/fish/completions dot_config/fish/functions/br.fish dot_config/fish/functions/dotenv.fish -# Private Files -*private* -.private.env.* # Test files test/ diff --git a/home/.chezmoiignore.tmpl b/home/.chezmoiignore.tmpl index fb5ac80..ff0f43f 100644 --- a/home/.chezmoiignore.tmpl +++ b/home/.chezmoiignore.tmpl @@ -15,13 +15,21 @@ scripts .config/waybar .config/wlogout .config/krunnerrc +.config/systemd .config/user-dirs.dirs .config/user-dirs.locale {{ end }} - +{{ if eq .chezmoi.os "linux" }} {{ if ne .chezmoi.osRelease.id "arch" }} .config/*-flags.conf {{ end }} +{{ end }} - +{{ if ne .chezmoi.os "darwin" }} +Library +.config/karabiner +.config/sketchybar +.config/skhd +.config/yabai +{{ end}} diff --git a/platforms/mac/karabiner/assets/complex_modifications/1739653723.json b/home/dot_config/karabiner/assets/complex_modifications/1739653723.json similarity index 100% rename from platforms/mac/karabiner/assets/complex_modifications/1739653723.json rename to home/dot_config/karabiner/assets/complex_modifications/1739653723.json diff --git a/platforms/mac/karabiner/assets/complex_modifications/1741027882.json b/home/dot_config/karabiner/assets/complex_modifications/1741027882.json similarity index 100% rename from platforms/mac/karabiner/assets/complex_modifications/1741027882.json rename to home/dot_config/karabiner/assets/complex_modifications/1741027882.json diff --git a/platforms/mac/karabiner/.gitignore b/home/dot_config/karabiner/dot_gitignore similarity index 100% rename from platforms/mac/karabiner/.gitignore rename to home/dot_config/karabiner/dot_gitignore diff --git a/platforms/mac/karabiner/karabiner.json b/home/dot_config/karabiner/karabiner.json similarity index 100% rename from platforms/mac/karabiner/karabiner.json rename to home/dot_config/karabiner/karabiner.json diff --git a/platforms/mac/karabiner/readme.md b/home/dot_config/karabiner/readme.md similarity index 100% rename from platforms/mac/karabiner/readme.md rename to home/dot_config/karabiner/readme.md diff --git a/platforms/mac/sketchybar/sketchybarrc b/home/dot_config/sketchybar/executable_sketchybarrc old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/sketchybarrc rename to home/dot_config/sketchybar/executable_sketchybarrc diff --git a/platforms/mac/sketchybar/variables.sh b/home/dot_config/sketchybar/executable_variables.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/variables.sh rename to home/dot_config/sketchybar/executable_variables.sh diff --git a/platforms/mac/sketchybar/items/battery.sh b/home/dot_config/sketchybar/items/executable_battery.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/battery.sh rename to home/dot_config/sketchybar/items/executable_battery.sh diff --git a/platforms/mac/sketchybar/items/calendar.sh b/home/dot_config/sketchybar/items/executable_calendar.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/calendar.sh rename to home/dot_config/sketchybar/items/executable_calendar.sh diff --git a/platforms/mac/sketchybar/items/clock.sh b/home/dot_config/sketchybar/items/executable_clock.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/clock.sh rename to home/dot_config/sketchybar/items/executable_clock.sh diff --git a/platforms/mac/sketchybar/items/cpu.sh b/home/dot_config/sketchybar/items/executable_cpu.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/cpu.sh rename to home/dot_config/sketchybar/items/executable_cpu.sh diff --git a/platforms/mac/sketchybar/items/front_app.sh b/home/dot_config/sketchybar/items/executable_front_app.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/front_app.sh rename to home/dot_config/sketchybar/items/executable_front_app.sh diff --git a/platforms/mac/sketchybar/items/memory.sh b/home/dot_config/sketchybar/items/executable_memory.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/memory.sh rename to home/dot_config/sketchybar/items/executable_memory.sh diff --git a/platforms/mac/sketchybar/items/spaces.sh b/home/dot_config/sketchybar/items/executable_spaces.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/spaces.sh rename to home/dot_config/sketchybar/items/executable_spaces.sh diff --git a/platforms/mac/sketchybar/items/spotify.sh b/home/dot_config/sketchybar/items/executable_spotify.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/spotify.sh rename to home/dot_config/sketchybar/items/executable_spotify.sh diff --git a/platforms/mac/sketchybar/items/volume.sh b/home/dot_config/sketchybar/items/executable_volume.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/items/volume.sh rename to home/dot_config/sketchybar/items/executable_volume.sh diff --git a/platforms/mac/sketchybar/plugins/calendar.sh b/home/dot_config/sketchybar/plugins/executable_calendar.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/calendar.sh rename to home/dot_config/sketchybar/plugins/executable_calendar.sh diff --git a/platforms/mac/sketchybar/plugins/clock.sh b/home/dot_config/sketchybar/plugins/executable_clock.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/clock.sh rename to home/dot_config/sketchybar/plugins/executable_clock.sh diff --git a/platforms/mac/sketchybar/plugins/cpu.sh b/home/dot_config/sketchybar/plugins/executable_cpu.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/cpu.sh rename to home/dot_config/sketchybar/plugins/executable_cpu.sh diff --git a/platforms/mac/sketchybar/plugins/front_app.sh b/home/dot_config/sketchybar/plugins/executable_front_app.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/front_app.sh rename to home/dot_config/sketchybar/plugins/executable_front_app.sh diff --git a/platforms/mac/sketchybar/plugins/memory.sh b/home/dot_config/sketchybar/plugins/executable_memory.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/memory.sh rename to home/dot_config/sketchybar/plugins/executable_memory.sh diff --git a/platforms/mac/sketchybar/plugins/power.sh b/home/dot_config/sketchybar/plugins/executable_power.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/power.sh rename to home/dot_config/sketchybar/plugins/executable_power.sh diff --git a/platforms/mac/sketchybar/plugins/sound.sh b/home/dot_config/sketchybar/plugins/executable_sound.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/sound.sh rename to home/dot_config/sketchybar/plugins/executable_sound.sh diff --git a/platforms/mac/sketchybar/plugins/space.sh b/home/dot_config/sketchybar/plugins/executable_space.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/space.sh rename to home/dot_config/sketchybar/plugins/executable_space.sh diff --git a/platforms/mac/sketchybar/plugins/spotify.sh b/home/dot_config/sketchybar/plugins/executable_spotify.sh old mode 100755 new mode 100644 similarity index 100% rename from platforms/mac/sketchybar/plugins/spotify.sh rename to home/dot_config/sketchybar/plugins/executable_spotify.sh diff --git a/platforms/mac/skhdrc b/home/dot_config/skhd/skhdrc similarity index 100% rename from platforms/mac/skhdrc rename to home/dot_config/skhd/skhdrc diff --git a/platforms/mac/yabairc b/home/dot_config/yabai/yabairc similarity index 100% rename from platforms/mac/yabairc rename to home/dot_config/yabai/yabairc diff --git a/platforms/mac/DefaultKeyBinding.dict b/home/private_Library/Keybindings/DefaultKeyBinding.dict similarity index 100% rename from platforms/mac/DefaultKeyBinding.dict rename to home/private_Library/Keybindings/DefaultKeyBinding.dict diff --git a/platforms/mac/etc/nix-darwin/default-system.nix b/platforms/mac/etc/nix-darwin/default-system.nix deleted file mode 100644 index 9413df1..0000000 --- a/platforms/mac/etc/nix-darwin/default-system.nix +++ /dev/null @@ -1,113 +0,0 @@ -# vim:shiftwidth=2 -# https://github.com/LnL7/nix-darwin/tree/5d6e0851b60508cffd66b4a6982440a40720338d/modules/system/defaults -{ pkgs, ... }: { - system.defaults = { - dock = { - appswitcher-all-displays = true; - autohide = true; - # Launch Animation - launchanim = false; - # Minimize Animation - mineffect = "suck"; - minimize-to-application = true; - persistent-apps = [ - { app = "/Applications/Vivaldi.app"; } - { app = "/Applications/WezTerm.app"; } - { app = "/Applications/Obsidian.app"; } - { app = "/Applications/Visual Studio Code.app"; } - { app = "/Applications/Neovide.app"; } - # { spacer = { small = false; }; } - # { spacer = { small = true; }; } - # { folder = "/System/Applications/Utilities"; } - # { folder = "/Users/js0ny/Downloads/"; } - ]; - persistent-others = [ - "/Users/js0ny/Downloads" - "/Users/js0ny/Source" - ]; - show-recents = false; - orientation = "bottom"; - # tr - Top Right - # tl - Top Left (disable this) - # br - Bottom Right - # bl - Bottom Left - # `1`: Disabled - # `2`: Mission Control - # `3`: Application Windows - # `4`: Desktop - # `5`: Start Screen Saver - # `6`: Disable Screen Saver - # `7`: Dashboard - # `10`: Put Display to Sleep - # `11`: Launchpad - # `12`: Notification Center - # `13`: Lock Screen - # `14`: Quick Note - wvous-tr-corner = 2; - wvous-bl-corner = 11; # Simulate Windows button on Windows - wvous-br-corner = 4; - }; - finder = { - AppleShowAllFiles = true; - ShowStatusBar = true; - ShowPathbar = true; - FXRemoveOldTrashItems = true; - AppleShowAllExtensions = true; - QuitMenuItem = true; - ShowExternalHardDrivesOnDesktop = false; - ShowRemovableMediaOnDesktop = false; - # This will look show full path in title bar - # For example: /Users/username/Downloads - # instead of just Downloads - _FXShowPosixPathInTitle = false; - _FXSortFoldersFirst = true; - FXEnableExtensionChangeWarning = false; - # Use `Home` instead of `PfHm` - # nix-darwin won't parse `PfHm` - NewWindowTarget = "Home"; - }; - trackpad = { - TrackpadRightClick = true; - TrackpadThreeFingerDrag = true; - }; - screencapture = { - location = "~/Pictures/Screenshots"; - type = "png"; - include-date = true; - }; - SoftwareUpdate.AutomaticallyInstallMacOSUpdates = false; - ".GlobalPreferences" = { - "com.apple.sound.beep.sound" = "/System/Library/Sounds/Blow.aiff"; - }; - NSGlobalDomain = { - AppleInterfaceStyle = "Dark"; - AppleInterfaceStyleSwitchesAutomatically = true; - AppleShowAllExtensions = true; - # Use Fn key as standard function keys instead of media keys - "com.apple.keyboard.fnState" = true; - AppleMeasurementUnits = "Centimeters"; - AppleICUForce24HourTime = true; - }; - controlcenter.BatteryShowPercentage = true; - # Fn usage: - # 0: Show Emoji & Symbols - # 1: Change Input Source - # 2: Show Emoji & Symbols - # 3: Start Dictation - hitoolbox.AppleFnUsageType = "Change Input Source"; - WindowManager = { - EnableTilingByEdgeDrag = true; - EnableTopTilingByEdgeDrag = true; - EnableTilingOptionAccelerator = true; - EnableTiledWindowMargins = true; - }; - # universalaccess = { - # mouseDriverCursorSize = 1.5; - # reduceMotion = true; - # reduceTransparency = false; - # }; - menuExtraClock = { - ShowSeconds = true; - }; - }; -} diff --git a/platforms/mac/etc/nix-darwin/flake.nix b/platforms/mac/etc/nix-darwin/flake.nix deleted file mode 100644 index 99a0d64..0000000 --- a/platforms/mac/etc/nix-darwin/flake.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - description = "Example nix-darwin system flake"; - - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - nix-darwin.url = "github:LnL7/nix-darwin/master"; - nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; - }; - - outputs = inputs@{ self, nix-darwin, nixpkgs }: - let - configuration = { pkgs, ... }: { - # List packages installed in system profile. To search by name, run: - # $ nix-env -qaP | grep wget - environment.systemPackages = - [ pkgs.vim - ]; - - environment.etc."zshenv".text = '' - if [ -d $HOME/.config/zsh ]; then - export ZDOTDIR=$HOME/.config/zsh - fi - ''; - - # Necessary for using flakes on this system. - nix.settings.experimental-features = "nix-command flakes"; - - # Enable alternative shell support in nix-darwin. - # programs.fish.enable = true; - - # Set Git commit hash for darwin-version. - system.configurationRevision = self.rev or self.dirtyRev or null; - - # Used for backwards compatibility, please read the changelog before changing. - # $ darwin-rebuild changelog - system.stateVersion = 6; - - # The platform the configuration will be used on. - nixpkgs.hostPlatform = "aarch64-darwin"; - }; - in - { - # Build darwin flake using: - # $ darwin-rebuild build --flake .#Zen - darwinConfigurations."Zen" = nix-darwin.lib.darwinSystem { - modules = [ - configuration - ./default-system.nix - ]; - }; - }; -} diff --git a/platforms/mac/fastfetch.jsonc b/platforms/mac/fastfetch.jsonc deleted file mode 100644 index 45adeaa..0000000 --- a/platforms/mac/fastfetch.jsonc +++ /dev/null @@ -1,54 +0,0 @@ -// %UserProfile%\.config\fastfetch\config.jsonc -{ - "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", - "logo": { - "type": "auto", - // "source": "Windows 7", - "padding": { - "top": 2, - "left": 1, - "right": 2 - } - }, - "general": { - "multithreading": true - }, - "display": { - "separator": " ", - "key": { - "width": 10, - "paddingLeft": 2, - "type": "icon" - } - }, - "modules": [ - { - "type": "title", - "format": "{#1}───────────── {#}{user-name-colored}@{host-name-colored}" - }, - { - "type": "colors", - "symbol": "diamond", - "paddingLeft": 15 - }, - "os", - "host", - "kernel", - "uptime", - { - "type": "packages" - }, - "shell", - "display", - "cursor", - "terminal", - "terminalfont", - "cpu", - "memory", - "swap", - "disk", - "battery", - "poweradapter", - "locale" - ] -} \ No newline at end of file diff --git a/platforms/mac/neovide.toml b/platforms/mac/neovide.toml deleted file mode 100644 index 46afa64..0000000 --- a/platforms/mac/neovide.toml +++ /dev/null @@ -1,25 +0,0 @@ -# $XDG_CONFIG_HOME/neovide/config.toml -# ln -sf $DOTFILES/mac/neovide.toml $XDG_CONFIG_HOME/neovide/config.toml -# New-Item -ItemType SymbolicLink -Path $Env:XDG_CONFIG_HOME/neovide/config.toml -Value $DOTFILES\mac\neovide.toml (Mac) -# https://neovide.dev/config-file.html?highlight=toml#config-file -# 设置为 fork 默认后台运行,不会占用终端 -fork = true -# frame = "full" -idle = true -maximized = false -# neovim-bin = "/opt/homebrew/bin/nvim" -frame = "transparent" -no-multigrid = false -srgb = false -tabs = true -theme = "auto" -title-hidden = true -vsync = true -wsl = false - -[font] -normal = [ - "Iosevka Nerd Font", - "霞鹜文楷等宽", -] # Will use the bundled Fira Code Nerd Font by default -size = 14.0 diff --git a/platforms/mac/pwshProfile.ps1 b/platforms/mac/pwshProfile.ps1 deleted file mode 100644 index ac0ce0d..0000000 --- a/platforms/mac/pwshProfile.ps1 +++ /dev/null @@ -1,23 +0,0 @@ -# $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1 -# ln -sf $DOTFILES/mac/Microsoft.PowerShell_profile.ps1 $XDG_CONFIG_HOME/powershell/Microsoft.PowerShell_profile.ps1 -### Variables ### - -$DOTFILES = "$HOME/.dotfiles" - -### Load Configs ### - -Get-ChildItem -Path $(Join-Path $DOTFILES "tools" "powershell") -Filter *.ps1 | ForEach-Object {. $_} - -## Aliases ### - -# PowerShell Equivalents # - -# Set-Alias "curl" "Invoke-WebRequest" -# Set-Alias "man" "Get-Help" -Set-Alias "kill" "Stop-Process" -Set-Alias "open" "Invoke-Item" # Use ii instead of open - -# Dev # - -${function:zshcfg} = { nvim ~/.zshrc } -${function:bashcfg} = { nvim ~/.bashrc } diff --git a/platforms/mac/readme.md b/platforms/mac/readme.md deleted file mode 100644 index e69de29..0000000 diff --git a/platforms/mac/shortcuts/finder_open.applescript b/platforms/mac/shortcuts/finder_open.applescript deleted file mode 100644 index da3f806..0000000 --- a/platforms/mac/shortcuts/finder_open.applescript +++ /dev/null @@ -1,4 +0,0 @@ -tell application "Finder" - activate - make new Finder window -end tell diff --git a/platforms/mac/zshrc b/platforms/mac/zshrc deleted file mode 100644 index 7fbe8a6..0000000 --- a/platforms/mac/zshrc +++ /dev/null @@ -1,8 +0,0 @@ -# $DOTFILES/platforms/mac/zshrc -# Date: 2024-11-30 -# Author: js0ny -# Sourced by user's zshrc if is macOS 在用户的 zshrc 中被引用,macOS 特定配置 -# Entry point in $DOTFILES/tools/zsh/common.zshrc (入口点) - -# macOS # - diff --git a/platforms/mac/etc/pam.d/sudo b/tools/mac/etc/pam.d/sudo similarity index 100% rename from platforms/mac/etc/pam.d/sudo rename to tools/mac/etc/pam.d/sudo