-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·88 lines (68 loc) · 3.01 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/zsh
source "zsh/functions.sh"
source "zsh/exports.sh"
source "macos/set_defaults.sh"
source "xcode/install.sh"
source "homebrew/install.sh"
source "homebrew/install_minimum_homebrew_packages.sh"
source "zsh/setup_zsh.sh"
echo "setup hosts file (perhaps you need to do it manually later)"
rm -rf /etc/hosts
ln -sfvh ~/projects/dotfiles/macos/hosts /etc/hosts
echo "setup git symlinks"
rm -rf ~/.gitconfig
ln -sfvh ~/projects/dotfiles/git/gitconfig ~/.gitconfig
echo "setup karabiner symlinks"
rm -rf ~/.config/karabiner
ln -sfvh ~/projects/dotfiles/karabiner ~/.config/karabiner
echo "setup goku symlinks"
rm -rf ~/.config/karabiner.edn
ln -sfvh ~/projects/dotfiles/goku/karabiner.edn ~/.config/karabiner.edn
echo "setup hammerspoon symlinks"
rm -rf ~/.hammerspoon
ln -sfvh ~/projects/dotfiles/hammerspoon ~/.hammerspoon
open /Applications/Hammerspoon.app
echo "setup Visual Studio Code symlinks"
rm -rf ~/Library/Application\ Support/Code/User
ln -sfvh ~/projects/dotfiles/vscode/User ~/Library/Application\ Support/Code/User
echo "setup midnight commander symlink"
rm -rf ~/.config/mc
ln -sfvh ~/projects/dotfiles/midnight\ commander ~/.config/mc
echo "setup flameshot symlinks"
rm -rf ~/.config/flameshot
ln -sfvh ~/projects/dotfiles/flameshot ~/.config/flameshot
echo "install Lulu from downloaded package"
echo "Lulu forgets the settings when updated from homebrew"
curl -O https://github.com/objective-see/LuLu/releases/download/v2.4.2/LuLu_2.4.2.dmg
open LuLu_2.4.2.dmg
echo "install DockUtil since homebrew has version 2 still"
curl -O https://github.com/kcrawford/dockutil/releases/download/3.0.2/dockutil-3.0.2.pkg
open dockutil-3.0.2.pkg
echo "install Birman's keyboard Layout"
curl -O https://ilyabirman.ru/typography-layout/download/ilya-birman-typolayout-3.9-mac.zip
open ilya-birman-typolayout-3.9-mac.zip
echo "set default applications for different file extensions"
source "macos/set_default_apps.sh"
echo "https://www.mrfdev.com/enhancer-for-youtube"
open https://www.mrfdev.com/enhancer-for-youtube
echo "run dock setup. Run once again when dockutil is installed please!"
source "macos/dock_setup.sh"
echo "installing trash-cli to replace rm with trash"
npm install --global trash-cli
echo "installing vsce to publish vscode extensions"
npm install --global vsce
npm install --global typescript
echo "installing nanorc"
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
mkd /usr/local/Cellar/node/node_global
npm config set prefix '/usr/local/Cellar/node/node_global'
sudo chown -R $(whoami) /usr/local/Cellar
echo "installing Finder Context Menu"
rm -rf ~/Library/Groudp\ Containers/85P8ZUTQL8.net.langui.ContextMenu/Actions
ln -sfvh ~/projects/dotfiles/contextmenu/Actions ~/Library/Group\ Containers/85P8ZUTQL8.net.langui.ContextMenu/Actions
scripts_dir=~/Library/Application\ Scripts/net.langui.ContextMenuHelper
mkdir -p "$scripts_dir"
script_content=$'#!/bin/sh\npkill -nf ScriptMonitor\nexec "$@"'
helper_path="$scripts_dir/contextmenu.sh"
echo "$script_content" > "$helper_path"
chmod +x "$helper_path"