Browse Source

Fix zshrc failed

mac-init
Ein Verne 4 years ago
parent
commit
0e17e6872e
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 40
      Brewfile
  2. 4
      bootstrap.sh
  3. 3
      init_mac.sh

40
Brewfile

@ -8,6 +8,7 @@ tap "homebrew/cask-versions"
tap "adoptopenjdk/openjdk" tap "adoptopenjdk/openjdk"
# primitives # primitives
brew coreutils
brew "git" brew "git"
brew "neovim" brew "neovim"
brew "zsh" brew "zsh"
@ -15,9 +16,13 @@ brew "zsh-completions"
brew "tmux" brew "tmux"
brew "gnupg" brew "gnupg"
brew "gnupg2" brew "gnupg2"
brew "fzf"
brew "hub"
brew "tmux"
brew "tree"
brew "wget"
# tools # tools
brew "wget"
brew "mas" brew "mas"
brew "p7zip" brew "p7zip"
brew "dos2unix" brew "dos2unix"
@ -25,6 +30,18 @@ brew "proxychains-ng"
brew "htop" brew "htop"
brew "neofetch" brew "neofetch"
brew "syncthing" brew "syncthing"
brew "[email protected]"
brew "readline"
brew "asdf"
brew "[email protected]", link: true
brew "cmake"
brew "jenv"
brew "node"
brew "pyenv"
brew "rbenv"
brew "sqlite"
brew "xz"
brew "zlib"
# productivity # productivity
brew "exa" brew "exa"
@ -50,6 +67,7 @@ brew "yarn"
# brew "wrk" # brew "wrk"
if ENV.key? 'CI_MODE' if ENV.key? 'CI_MODE'
cask "iterm2"
cask "eudic" cask "eudic"
cask "java" cask "java"
cask "licecap" cask "licecap"
@ -60,7 +78,6 @@ cask "google-chrome"
# cask "firefox-developer-edition" # cask "firefox-developer-edition"
# cask "sublime-text" # cask "sublime-text"
cask "visual-studio-code" cask "visual-studio-code"
cask "iterm2"
cask "font-source-code-pro" cask "font-source-code-pro"
cask "font-fira-code" cask "font-fira-code"
cask "dash" cask "dash"
@ -77,6 +94,7 @@ cask "oversight"
cask "nitroshare" cask "nitroshare"
cask "qmk-toolbox" cask "qmk-toolbox"
cask "via" cask "via"
cask "vlc"
mas "WeChat", id: 836500024 mas "WeChat", id: 836500024
mas "Unsplash Wallpapers", id: 1284863847 mas "Unsplash Wallpapers", id: 1284863847
@ -91,21 +109,3 @@ end
brew "[email protected]"
brew "readline"
brew "asdf"
brew "[email protected]", link: true
brew "cmake"
brew "fzf"
brew "git"
brew "hub"
brew "jenv"
brew "node"
brew "privoxy"
brew "pyenv"
brew "sqlite"
brew "tmux"
brew "tree"
brew "wget"
brew "xz"
brew "zlib"

4
bootstrap.sh

@ -36,6 +36,10 @@ ln -s ./git/global.gitconfig ~/.gitconfig
echo "Setup Zsh" echo "Setup Zsh"
sudo sh -c 'echo /usr/local/bin/zsh >> /etc/shells' sudo sh -c 'echo /usr/local/bin/zsh >> /etc/shells'
sudo chsh -s $(which zsh) sudo chsh -s $(which zsh)
if [ -f ~/.zshrc ]; then
cat ~/.zshrc
mv ~/.zshrc ~/zshrc.bak
fi
ln -s .zshrc ~/.zshrc ln -s .zshrc ~/.zshrc
source ~/.zshrc source ~/.zshrc

3
init_mac.sh

@ -26,3 +26,6 @@ defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Show all hidden files
defaults write com.apple.finder AppleShowAllFiles ture

Loading…
Cancel
Save