diff --git a/fish/functions/z-cleanup.fish b/fish/conf.d/cleanup.fish similarity index 65% rename from fish/functions/z-cleanup.fish rename to fish/conf.d/cleanup.fish index 68895f8..227fe32 100644 --- a/fish/functions/z-cleanup.fish +++ b/fish/conf.d/cleanup.fish @@ -1,4 +1,4 @@ -function z-cleanup --description "Clean up z data" +function cleanup-z --description "Clean up z data" # Because POSIX sed does not have -i option, # here we use tmpfile and redirect to update the file. set -l tmp_file (mktemp) @@ -12,3 +12,11 @@ function z-cleanup --description "Clean up z data" rm -f $tmp_file end + +function cleanup-swap + rm $HOME/.local/state/nvim/swap/* +end + +function cleanup-ds-store + fd -HI '^\.DS_Store$' -X rm +end diff --git a/fish/conf.d/colima.fish b/fish/conf.d/colima.fish new file mode 100644 index 0000000..0adcae9 --- /dev/null +++ b/fish/conf.d/colima.fish @@ -0,0 +1,7 @@ +function colima-up + colima start --arch aarch64 \ + --vm-type=vz --vz-rosetta \ + --mount-type virtiofs --mount-inotify \ + --cpu 8 --memory 16 --disk 128 \ + --dns 8.8.8.8 --dns 1.1.1.1 +end diff --git a/fish/config.fish b/fish/config.fish index cadd887..b050320 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -75,7 +75,7 @@ if status is-interactive set -gx VIRTUAL_ENV_DISABLE_PROMPT true if not test -z "$Z_DATA" - z-cleanup + cleanup-z end set -l config_local $XDG_CONFIG_HOME/fish/config.local.fish diff --git a/fish/functions/brew-upgrade.fish b/fish/functions/brew-upgrade.fish index 9937e2e..1e77392 100644 --- a/fish/functions/brew-upgrade.fish +++ b/fish/functions/brew-upgrade.fish @@ -1,3 +1,3 @@ function brew-upgrade --description "Upgrade, autoremove, and cleanup Homebrew" - brew upgrade; brew autoremove; brew cleanup --prune=all + brew upgrade -y; brew autoremove; brew cleanup --prune=all end diff --git a/git/ignore b/git/ignore index 3bb176b..e9b5d7e 100644 --- a/git/ignore +++ b/git/ignore @@ -1,3 +1,5 @@ +# local stash directory +.local-stash # # direnv # @@ -86,3 +88,6 @@ pip-selfcheck.json # Claude Code **/.claude/settings.local.json + +# playwright-mcp +.playwright-mcp diff --git a/init b/init index fe3ed8a..ab31c14 100755 --- a/init +++ b/init @@ -178,6 +178,8 @@ def process() -> None: ), # fish SymlinkToConfig("fish/config.fish", exist_ok=True), + SymlinkToConfig("fish/conf.d/cleanup.fish", exist_ok=True), + SymlinkToConfig("fish/conf.d/colima.fish", exist_ok=True), SymlinkToConfig("fish/fish_plugins", exist_ok=True), SymlinkToConfig("fish/functions/brew-upgrade.fish", exist_ok=True), SymlinkToConfig("fish/functions/fish_prompt.fish", exist_ok=True), @@ -185,7 +187,6 @@ def process() -> None: SymlinkToConfig("fish/functions/fzf-docker.fish", exist_ok=True), SymlinkToConfig("fish/functions/fzf-git-branch.fish", exist_ok=True), SymlinkToConfig("fish/functions/fzf-z.fish", exist_ok=True), - SymlinkToConfig("fish/functions/z-cleanup.fish", exist_ok=True), ] for install_item in install_items: