sataga / dotfiles-mac

0 stars 0 forks source link

ちょっといじって動かしてみた #1

Open sataga opened 2 years ago

sataga commented 2 years ago

動作ログ

t-sataga@MBA dotfiles-mac % pwd
/Users/t-sataga/git/dotfiles-mac
t-sataga@MBA dotfiles-mac % ls
1_homebrew      2_ssh_config    3_macos         4_dotfiles      5_vscode        README.md       install.sh
t-sataga@MBA dotfiles-mac % ./install.sh 
📁 /Users/t-sataga/git/dotfiles-mac/1_homebrew
Password:
/Users/t-sataga/git/dotfiles-mac/1_homebrew/install.sh: line 14: cd: /Users/t-sataga/git/dotfiles-mac/homebrew: No such file or directory
📁 /Users/t-sataga/git/dotfiles-mac/2_ssh_config
👍 ssh_config install is done!
📁 /Users/t-sataga/git/dotfiles-mac/3_macos
👍 MacOS setting is done!
📁 /Users/t-sataga/git/dotfiles-mac/4_dotfiles
/Users/t-sataga/.??* -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.??*
curl: (22) The requested URL returned error: 404 
👍 dotfiles link is done!
📁 /Users/t-sataga/git/dotfiles-mac/5_vscode
/Users/t-sataga/Library/Application Support/Code/User//settings.json -> /Users/t-sataga/git/dotfiles-mac/vscode/settings.json
Installing extensions...
Extension 'ms-ceintl.vscode-language-pack-ja' v1.63.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-ceintl.vscode-language-pack-ja@1.2.3'.
Installing extensions...
Extension 'chrmarti.regex' v0.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'chrmarti.regex@1.2.3'.
Installing extensions...
Extension 'coenraads.bracket-pair-colorizer' v1.0.62 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'coenraads.bracket-pair-colorizer@1.2.3'.
Installing extensions...
Extension 'davidanson.vscode-markdownlint' v0.45.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'davidanson.vscode-markdownlint@1.2.3'.
Installing extensions...
Extension 'donjayamanne.githistory' v0.6.19 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'donjayamanne.githistory@1.2.3'.
Installing extensions...
Extension 'golang.go' v0.30.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'golang.go@1.2.3'.
Installing extensions...
Extension 'hashicorp.terraform' v2.17.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hashicorp.terraform@1.2.3'.
Installing extensions...
Extension 'hediet.vscode-drawio' v1.6.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hediet.vscode-drawio@1.2.3'.
Installing extensions...
Extension 'ionutvmi.path-autocomplete' v1.18.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ionutvmi.path-autocomplete@1.2.3'.
Installing extensions...
Extension 'jebbs.markdown-extended' v1.1.1 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'jebbs.markdown-extended@1.2.3'.
Installing extensions...
Extension 'natqe.reload' v0.0.6 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'natqe.reload@1.2.3'.
Installing extensions...
Extension 'taichi.vscode-textlint' v0.11.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'taichi.vscode-textlint@1.2.3'.
Installing extensions...
Extension 'timonwong.shellcheck' v0.18.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'timonwong.shellcheck@1.2.3'.
Installing extensions...
Extension 'wayou.vscode-icons-mac' v7.25.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'wayou.vscode-icons-mac@1.2.3'.
Installing extensions...
Extension 'yzhang.markdown-all-in-one' v3.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'yzhang.markdown-all-in-one@1.2.3'.
Installing extensions...
Extension 'zainchen.json' v2.0.2 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'zainchen.json@1.2.3'.
👍 VSCode setting is done!
t-sataga@MBA dotfiles-mac % 

結果

sataga commented 2 years ago

2回目

実行ログ

t-sataga@MBA dotfiles-mac % ./install.sh
📁 homebrew
Password:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 4 taps (homebrew/core, homebrew/cask, homebrew/bundle and homebrew/services).
==> New Formulae
abi-compliance-checker                grafana-agent                         php@8.0
abi-dumper                            hurl                                  pip-audit
bash-language-server                  imap-backup                           pocsuite3
biber                                 isa-l                                 rpki-client
brigade-cli                           java-service-wrapper                  salt-lint
btop                                  jsonschema                            seaweedfs
cava                                  kubernetes-cli@1.22                   sevenzip
chroma                                libgrape-lite                         sniffer
coursier                              libsoup@2                             solargraph
djhtml                                lighthouse                            sqlfluff
dynomite                              lua-language-server                   statix
etcd-cpp-apiv3                        mcfly                                 symengine
fastfec                               mist                                  teku
fastp                                 mold                                  tsduck
fypp                                  mt32emu                               vtable-dumper
git-branchless                        openliberty-jakartaee9                yaml-language-server
goawk                                 openliberty-webprofile9               zsh-fast-syntax-highlighting
goplus                                pam-reattach
gotify                                payload-dumper-go
==> Updated Formulae
Updated 2018 formulae.
==> Renamed Formulae
rt-audio -> rtaudio
==> Deleted Formulae
ape             drip            gconf           jerasure        libvbucket      postmark        torrentcheck
balance         dshb            gcore           kakasi          m2c             redsocks        udns
bbcolors        eject           gf-complete     l-smash         magnetix        sdhash          whitedb
colorsvn        es              git-hooks       libbind         makepp          shorten         whohas
contacts        eventlog        git-sh          liberasurecode  marst           soundpipe       xidel
csv-fix         exomizer        hardlink-osx    libmill         mboxgrep        srmio           xtail
dlite           flasm           henplus         libopendkim     md              svdlibc         zdelta
dnsrend         fondu           httptunnel      libpuzzle       namazu          swiftplate
==> New Casks
appflowy                     grammarly-desktop            projector                    tidgi
appium-inspector             handyprintpro                remotehamradio               vale-server
centered                     izotope-product-portal       schildichat                  valkyrie
citrix-workspace             jt-bridge                    shapr3d                      videoduke
clips-ide                    kdrive                       sioyek                       vlc-setup
cron                         linearmouse                  sitala                       volley
datasette                    ludwig                       soothe2                      vpn-tracker-365
dataspell                    macloggerdx                  soundtoys                    waltr-heic-converter
emmetapp                     macrorecorder                spaceid                      wolai
equinox                      mana-security                supermjograph                wsjtx
fastmarks                    moradownloader               tablecruncher                xstation5
finalshell                   notch-simulator              teamspeak-client
folder-colorizer             only-switch                  tentacle-sync-studio
fxfactory                    pd-runner                    textsniper
==> Updated Casks
Updated 1020 casks.
==> Deleted Casks
air-connect                           everweb                               punto-switcher
aja-system-test                       freeter                               qit
anka-build-cloud-registry             gitbook                               river-sparkle
asc-timetables                        harvest                               scrutiny
avast-secureline-vpn                  inboard                               tmnotifier
chameleon-ssd-optimizer               lelivrescolairefr                     unity-linux-support-for-editor
chocolat                              napari                                unity-lumin-support-for-editor
delayedlauncher                       octoscreen                            visicut
domainbrain                           platelet
drama                                 pullover

Upgrading tree
Installing shellcheck
Installing zoom
Homebrew Bundle complete! 3 Brewfile dependencies now installed.
/Users/t-sataga/git/dotfiles-mac
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 9: autoload: command not found
/Users/t-sataga/.plugins.zsh: line 11: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 13: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 15: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 16: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 9: autoload: command not found
/Users/t-sataga/.plugins.zsh: line 11: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 13: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 15: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 16: zinit: command not found
👍 Homebrew setting is done!
📁 ssh_config
👍 ssh_config install is done!
📁 macos
👍 MacOS setting is done!
📁 dotfiles
/Users/t-sataga/.gitconfig -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.gitconfig
/Users/t-sataga/.gitignore -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.gitignore
/Users/t-sataga/.plugins.zsh -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.plugins.zsh
/Users/t-sataga/.vimrc -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.vimrc
curl: (22) The requested URL returned error: 404 
👍 dotfiles link is done!
📁 vscode
/Users/t-sataga/Library/Application Support/Code/User//settings.json -> /Users/t-sataga/git/dotfiles-mac/vscode/settings.json
Installing extensions...
Extension 'ms-ceintl.vscode-language-pack-ja' v1.63.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-ceintl.vscode-language-pack-ja@1.2.3'.
Installing extensions...
Extension 'chrmarti.regex' v0.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'chrmarti.regex@1.2.3'.
Installing extensions...
Installing extension 'coenraads.bracket-pair-colorizer'...
(node:10020) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Electron --trace-deprecation ...` to show where the warning was created)
Extension 'coenraads.bracket-pair-colorizer' v1.0.62 was successfully installed.
Installing extensions...
Extension 'davidanson.vscode-markdownlint' v0.45.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'davidanson.vscode-markdownlint@1.2.3'.
Installing extensions...
Extension 'donjayamanne.githistory' v0.6.19 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'donjayamanne.githistory@1.2.3'.
Installing extensions...
Extension 'golang.go' v0.30.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'golang.go@1.2.3'.
Installing extensions...
Extension 'hashicorp.terraform' v2.17.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hashicorp.terraform@1.2.3'.
Installing extensions...
Extension 'hediet.vscode-drawio' v1.6.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hediet.vscode-drawio@1.2.3'.
Installing extensions...
Extension 'ionutvmi.path-autocomplete' v1.18.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ionutvmi.path-autocomplete@1.2.3'.
Installing extensions...
Extension 'jebbs.markdown-extended' v1.1.1 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'jebbs.markdown-extended@1.2.3'.
Installing extensions...
Extension 'natqe.reload' v0.0.6 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'natqe.reload@1.2.3'.
Installing extensions...
Extension 'taichi.vscode-textlint' v0.11.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'taichi.vscode-textlint@1.2.3'.
Installing extensions...
Extension 'timonwong.shellcheck' v0.18.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'timonwong.shellcheck@1.2.3'.
Installing extensions...
Extension 'wayou.vscode-icons-mac' v7.25.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'wayou.vscode-icons-mac@1.2.3'.
Installing extensions...
Extension 'yzhang.markdown-all-in-one' v3.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'yzhang.markdown-all-in-one@1.2.3'.
Installing extensions...
Extension 'zainchen.json' v2.0.2 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'zainchen.json@1.2.3'.
👍 VSCode setting is done!
sataga commented 2 years ago

zinit がもれなくこけまくる -> installがうまくいっていないと考える

t-sataga@MBA dotfiles-mac % sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
curl: (22) The requested URL returned error: 404 

やはり...

Page not found · GitHub インストール先がそもそも消失している!!

sataga commented 2 years ago

あらまぁ... zsh の zinit (旧zplugin) が消滅しちゃったよ! 経緯と解決法 - Qiita

sataga commented 2 years ago

以下のクイックスタートを参照の内容に差し替えて実行 zdharma-continuum/zinit: 🌻 Flexible and fast ZSH plugin manager

t-sataga@MBA dotfiles-mac % ./install.sh📁 homebrew
Password:
Running `brew update --preinstall`...
Using tree
Using shellcheck
Using zoom
Homebrew Bundle complete! 3 Brewfile dependencies now installed.
/Users/t-sataga/git/dotfiles-mac
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 9: autoload: command not found
/Users/t-sataga/.plugins.zsh: line 11: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 13: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 15: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 16: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 9: autoload: command not found
/Users/t-sataga/.plugins.zsh: line 11: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 13: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 15: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 16: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 3: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 4: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 5: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 7: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 8: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 9: autoload: command not found
/Users/t-sataga/.plugins.zsh: line 11: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 13: zstyle: command not found
/Users/t-sataga/.plugins.zsh: line 15: zinit: command not found
/Users/t-sataga/.plugins.zsh: line 16: zinit: command not found
👍 Homebrew setting is done!
📁 ssh_config
👍 ssh_config install is done!
📁 macos
👍 MacOS setting is done!
📁 dotfiles
/Users/t-sataga/.gitconfig -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.gitconfig
/Users/t-sataga/.gitignore -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.gitignore
/Users/t-sataga/.plugins.zsh -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.plugins.zsh
/Users/t-sataga/.vimrc -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.vimrc
🔵INFO: About to setup zinit from zdharma-continuum/zinit (branch: main - commit: N/A) to /Users/t-sataga/.local/share/zinit/zinit.git
🔵INFO: Fetching git-process-output.zsh from https://raw.githubusercontent.com/zdharma-continuum/zinit/main/share/git-process-output.zsh
✅SUCCESS: Download finished!
🔵INFO: Installing zinit to  /Users/t-sataga/.local/share/zinit/zinit.git

Cloning into 'zinit.git'...
▎ ███████████ OBJ: 100, PACK: 22558/22558, COMPR: 100%, REC: 100%, RES: 100%  
✅SUCCESS: Checked out branch main
✅SUCCESS: Zinit succesfully installed to  /Users/t-sataga/.local/share/zinit/zinit.git
🔵INFO: Zinit Version: v3.7-331-g98d3eaa8
🔵INFO: Updating /Users/t-sataga/.zshrc (10 lines of code, at the bottom)
 Would you like to add 4 useful plugins - the most useful annexes (Zinit extensions that add new functions-features to the plugin manager) to the zshrc as well? It will be the following snippet:

# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
    zdharma-continuum/zinit-annex-as-monitor \
    zdharma-continuum/zinit-annex-bin-gem-node \
    zdharma-continuum/zinit-annex-patch-dl \
    zdharma-continuum/zinit-annex-rust

 Enter y/n and press Return: y
🔵INFO: Installing annexes
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? y
/Users/t-sataga/.plugins.zsh:15: command not found: zinit
/Users/t-sataga/.plugins.zsh:16: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? compinit: initialization aborted
/Users/t-sataga/.plugins.zsh:15: command not found: zinit
/Users/t-sataga/.plugins.zsh:16: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? ^C✅SUCCESS: Done!

🌻 Welcome!

Now to get started you can check out the following:

- The README section on the ice-modifiers:
    🧊 https://github.com/zdharma-continuum/zinit#ice-modifiers
- There's also an introduction to Zinit on the wiki:
    📚 https://zdharma-continuum.github.io/zinit/wiki/INTRODUCTION/
- The For-Syntax article on the wiki, which hilights some best practises:
    📖 https://zdharma-continuum.github.io/zinit/wiki/For-Syntax/

💁 Need help?
- 💬 Get in touch with us on Gitter: https://gitter.im/zdharma-continuum
- 🔖 Or on GitHub: https://github.com/zdharma-continuum
/var/folders/b4/xgk7gt8x3f50msqhs7fb31t80000gn/T/tmp.HgQFQD77/git-process-output.zsh
/var/folders/b4/xgk7gt8x3f50msqhs7fb31t80000gn/T/tmp.HgQFQD77
👍 dotfiles link is done!
📁 vscode
/Users/t-sataga/Library/Application Support/Code/User//settings.json -> /Users/t-sataga/git/dotfiles-mac/vscode/settings.json
^C

zsh読み込み直してどうなるか?

t-sataga@MBA dotfiles-mac % zinit ice wait'!0'; zinit light zsh-users/zsh-autosuggestions           
zsh: command not found: zinit
zsh: command not found: zinit
t-sataga@MBA dotfiles-mac % exec zsh
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:3: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:4: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:5: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:7: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
/Users/t-sataga/.plugins.zsh:8: command not found: zinit
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? ^C%   
sataga commented 2 years ago
実行ログ ``` import os import webbrowser from urllib.parse import quote def main(): with open(f"{os.path.dirname(os.path.abspath(__file__))}/shortcuts.dat") as f: buf = f.read() for l in [l.split('|') for l in buf.split('\n')][1:-1]: webbrowser.open(f"alfred://customsearch/{quote(l[0])}/{l[1]}/utf8/nospace/{quote(l[2])}") if __name__ == '__main__': main() ``` ``` Title|Keyword|Search URL sample|sample|https://sample.co.jp/?search={query} ``` ``` peco-history-selection() { BUFFER=`history -n 1 | tail -r | awk '!a[$0]++' | peco --layout bottom-up` CURSOR=$#BUFFER zle reset-prompt } zle -N peco-history-selection bindkey '^R' peco-history-selection ``` ``` export ZPLUG_HOME=/usr/local/opt/zplug source ${ZPLUG_HOME}/init.zsh zplug "zsh-users/zsh-completions" zplug "zsh-users/zsh-autosuggestions" # substring search zplug "zsh-users/zsh-history-substring-search" bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down # set 2 for load after compinit zplug "zsh-users/zsh-syntax-highlighting", defer:2 if ! zplug check --verbose; then printf "Install? [y/N]: " if read -q; then echo; zplug install fi fi zplug load # load completion init autoload -U compinit compinit ``` ``` #!/usr/bin/env zsh source $HOME/setup/zsh/zplug.zsh source $HOME/setup/zsh/key.zsh source $HOME/setup/zsh/setting.zsh # import env independent settings. should located in $HOME and be customized source $HOME/local.zsh source $HOME/setup/zsh/custom.conf ``` ``` # match both capital, small leters zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # tab selecting zstyle ':completion:*' menu select=2 # history setting HISTFILE=~/.zsh_history HISTSIZE=100000 SAVEHIST=100000 HISTTIMEFORMAT='%Y/%m/%d %H:%M:%S ' setopt share_history ``` ``` UNAME=`uname` if [[ $UNAME == 'Darwin' ]] ; then # in mac, fn + delete is getting ~ bindkey "^[[3~" delete-char # option + arrows bindkey "^[^[[D" backward-word bindkey "^[^[[C" forward-word fi # zplug installed plugin might overwrite some key binding so overwrite # https://superuser.com/questions/523564/emacs-keybindings-in-zsh-not-working-ctrl-a-ctrl-e bindkey -e ``` ``` # If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/t-sataga/.oh-my-zsh" # Path to language export GOPATH=$HOME/go export GOROOT="" # export GOROOT="$(brew --prefix golang)/libexec" export PATH=$PATH:$GOPATH/bin [[ -d ~/.rbenv ]] && \ export PATH=${HOME}/.rbenv/bin:${PATH} && \ eval "$(rbenv init -)" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="agnoster" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS=true # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(brew git vagrant) source $ZSH/oh-my-zsh.sh # User configuration export PATH="/usr/local/sbin:$PATH" # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US.UTF-8 export LANG=ja_JP.UTF-8 export EDITORP=vim #エディタをvimに設定 # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" alias la='ls -laG' alias ll='ls -aG' alias less='less -iMR' alias d='docker' alias dc='docker-compose' alias kl='kubectl' alias bl='bpctl' alias klc='kubectl config' alias klg='kubectl get' alias kld='kubectl describe' alias kle='kubectl exec -it' alias ks="kubens" alias kctx="kubectx" alias mc='btx' # 日本語ファイル名を表示可能にする setopt print_eight_bit # cdなしでディレクトリ移動 setopt auto_cd # ヒストリ(履歴)を保存、数を増やす HISTFILE=~/.zsh_history HISTSIZE=100000 SAVEHIST=100000 # 同時に起動したzshの間でヒストリを共有する setopt share_history # 直前と同じコマンドの場合は履歴に追加しない setopt hist_ignore_dups # 同じコマンドをヒストリに残さない setopt hist_ignore_all_dups # スペースから始まるコマンド行はヒストリに残さない setopt hist_ignore_space # ヒストリに保存するときに余分なスペースを削除する setopt hist_reduce_blanks # プロンプトの設定 PROMPT=$'%{%f%b%k%}$(build_prompt)\n-> %% ' # コマンド実行前と実行後の時間を出力 export PREV_COMMAND_END_TIME export NEXT_COMMAND_BGN_TIME function show_command_end_time() { PREV_COMMAND_END_TIME=`date "+%H:%M:%S"` RPROMPT="${PREV_COMMAND_END_TIME} - " } autoload -Uz add-zsh-hook add-zsh-hook precmd show_command_end_time show_command_begin_time() { NEXT_COMMAND_BGN_TIME=`date "+%H:%M:%S"` RPROMPT="${PREV_COMMAND_END_TIME} - ${NEXT_COMMAND_BGN_TIME}" zle .accept-line zle .reset-prompt } zle -N accept-line show_command_begin_time # cdの後にlsを実行 chpwd() { ls -ltrG } # 補完候補のメニュー選択で、矢印キーの代わりにhjklで移動出来るようにする。 zmodload zsh/complist bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'j' vi-down-line-or-history bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char # zsh-completionsの設定 fpath=(/path/to/homebrew/share/zsh-completions $fpath) autoload -U compinit compinit -u # kubernetes's config source <(kubectl completion zsh) source "/usr/local/opt/kube-ps1/share/kube-ps1.sh" # PS1='$(kube_ps1)'$PS1 source <(stern --completion=zsh) # customize function paste-as-yank() { pbpaste } zle -N paste-as-yank bindkey "^y" paste-as-yank # compression config export FZF_DEFAULT_OPTS='--height 40% --reverse --border' [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # function peco-history-selection() { # BUFFER=`\\history -n 1 | tail -r | awk '!a[$0]++' | peco` # CURSOR=$#BUFFER # zle reset-prompt # } # zle -N peco-history-selection # bindkey '^R' peco-history-selection # kubectl completion source <(kubectl completion zsh) # kubec-ps1 source "/usr/local/opt/kube-ps1/share/kube-ps1.sh" PS1='$(kube_ps1)'$PS1 # kubeoff export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" # export PATH="/usr/local/opt/node@12/bin:$PATH" export PATH="$HOME/.nodebrew/current/bin:$PATH" # bpctl export BPCTL_V2_DEFAULT=true # btx export BTX_ENABLE_STG=true # krew export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" # shell tips function urlencode { perl -MURI::Escape -e "print uri_escape('$*')"; } function urldecode { perl -MURI::Escape -e "print uri_unescape('$*')"; } ```
sataga commented 2 years ago
t-sataga@MBA ~ % find . -type l -maxdepth 1
./.gitignore
./.vimrc
./.gitconfig
./.plugins.zsh
t-sataga@MBA ~ % find . -type l -maxdepth 1 | xargs rm -f
t-sataga@MBA ~ % find . -type l -maxdepth 1
sataga commented 2 years ago

いい感じになってきた気がする

t-sataga@MBA dotfiles-mac % ./install.sh                                
📁 homebrew
Password:
Running `brew update --preinstall`...
Using tree
Using shellcheck
Using zplug
Using zoom
Homebrew Bundle complete! 4 Brewfile dependencies now installed.
/Users/t-sataga/git/dotfiles-mac
👍 Homebrew setting is done!
📁 ssh_config
👍 ssh_config install is done!
📁 macos
👍 MacOS setting is done!
📁 dotfiles
usr/local/bin/zsh
Changing shell for t-sataga.
Password for t-sataga: 
chsh: no changes made
/Users/t-sataga/.custom.conf -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.custom.conf
/Users/t-sataga/.key.zsh -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.key.zsh
/Users/t-sataga/.setting.zsh -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.setting.zsh
/Users/t-sataga/.zplug.zsh -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.zplug.zsh
/Users/t-sataga/.zshrc -> /Users/t-sataga/git/dotfiles-mac/dotfiles/.zshrc
👍 dotfiles link is done!
📁 vscode
cp: /Users/t-sataga/git/dotfiles-mac/vscode/settings.json: No such file or directory
Installing extensions...
Extension 'ms-ceintl.vscode-language-pack-ja' v1.63.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ms-ceintl.vscode-language-pack-ja@1.2.3'.
Installing extensions...
Extension 'chrmarti.regex' v0.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'chrmarti.regex@1.2.3'.
Installing extensions...
Extension 'coenraads.bracket-pair-colorizer' v1.0.62 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'coenraads.bracket-pair-colorizer@1.2.3'.
Installing extensions...
Extension 'davidanson.vscode-markdownlint' v0.45.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'davidanson.vscode-markdownlint@1.2.3'.
Installing extensions...
Extension 'donjayamanne.githistory' v0.6.19 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'donjayamanne.githistory@1.2.3'.
Installing extensions...
Extension 'golang.go' v0.30.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'golang.go@1.2.3'.
Installing extensions...
Extension 'hashicorp.terraform' v2.17.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hashicorp.terraform@1.2.3'.
Installing extensions...
Extension 'hediet.vscode-drawio' v1.6.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'hediet.vscode-drawio@1.2.3'.
Installing extensions...
Extension 'ionutvmi.path-autocomplete' v1.18.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'ionutvmi.path-autocomplete@1.2.3'.
Installing extensions...
Extension 'jebbs.markdown-extended' v1.1.1 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'jebbs.markdown-extended@1.2.3'.
Installing extensions...
Extension 'natqe.reload' v0.0.6 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'natqe.reload@1.2.3'.
Installing extensions...
Extension 'taichi.vscode-textlint' v0.11.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'taichi.vscode-textlint@1.2.3'.
Installing extensions...
Extension 'timonwong.shellcheck' v0.18.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'timonwong.shellcheck@1.2.3'.
Installing extensions...
Extension 'wayou.vscode-icons-mac' v7.25.3 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'wayou.vscode-icons-mac@1.2.3'.
Installing extensions...
Extension 'yzhang.markdown-all-in-one' v3.4.0 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'yzhang.markdown-all-in-one@1.2.3'.
Installing extensions...
Extension 'zainchen.json' v2.0.2 is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: 'zainchen.json@1.2.3'.
👍 VSCode setting is done!
sataga commented 2 years ago

ログインするたびに聞かれるこれうざい -> 権限がないらしいのでchmodする ref. [zsh: Ignore insecure directories and continue [y] or abort compinit N

t-sataga@MBA dotfiles-mac % exec zsh
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? y%    

t-sataga@MBA dotfiles-mac % compaudit                           
There are insecure directories:
/usr/local/Cellar/zplug/2.4.2/autoload
/usr/local/Cellar/zplug/2.4.2/misc/completions
/usr/local/Cellar/zplug/2.4.2/base/sources
/usr/local/Cellar/zplug/2.4.2/base/utils
/usr/local/Cellar/zplug/2.4.2/base/job
/usr/local/Cellar/zplug/2.4.2/base/log
/usr/local/Cellar/zplug/2.4.2/base/io
/usr/local/Cellar/zplug/2.4.2/base/core
/usr/local/Cellar/zplug/2.4.2/base/base
/usr/local/Cellar/zplug/2.4.2/autoload/commands
/usr/local/Cellar/zplug/2.4.2/autoload/options
/usr/local/Cellar/zplug/2.4.2/autoload/tags
/usr/local/share/zsh/site-functions
/usr/local/Cellar/zplug/2.4.2/repos/zsh-users/zsh-completions/src
/usr/local/Cellar/zplug/2.4.2
/usr/local/Cellar/zplug/2.4.2/misc
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/base
/usr/local/Cellar/zplug/2.4.2/autoload
/usr/local/Cellar/zplug/2.4.2/autoload
/usr/local/Cellar/zplug/2.4.2/autoload
/usr/local/share/zsh
/usr/local/Cellar/zplug/2.4.2/repos/zsh-users/zsh-completions
t-sataga@MBA dotfiles-mac % 
t-sataga@MBA dotfiles-mac % exec zsh                            
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? y
t-sataga@MBA dotfiles-mac % 
t-sataga@MBA dotfiles-mac % chmod -R 755 /usr/local/Cellar/zplug/2.4.2
t-sataga@MBA dotfiles-mac % compaudit                                 
There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh
t-sataga@MBA dotfiles-mac %          
t-sataga@MBA dotfiles-mac % chmod -R 755 /usr/local/share/zsh/        
t-sataga@MBA dotfiles-mac % compaudit