-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.txt
More file actions
196 lines (152 loc) · 5.74 KB
/
setup.txt
File metadata and controls
196 lines (152 loc) · 5.74 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
########## RPi5
##########
# Make WiFi play nice
Add brcmfmac.roamoff=1 brcmfmac.feature_disable=0x282000 to the end of /boot/firmware/cmdline.txt
#This disables a load of Broadcomm firmware offloading which does not work as it should :)
#https://github.com/raspberrypi/linux/issues/6049#issuecomment-2595167933
# Update RPi5 RAM speed
# sudo rpi-eeprom-config -e
[all]
BOOT_UART=1
BOOT_ORDER=0xf461
NET_INSTALL_AT_POWER_ON=1
SDRAM_BANKLOW=1
# Update RPi5 PCIe for NVME
# edit /boot/firmware/config.txt
[all]
dtparam=pciex1_gen=3
########## OSX
##########
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew install
brew install colordiff ripgrep vim cscope neovim sift fzf xz stow global telnet highlight mas the_silver_searcher htop xtitle tmux
brew install fd bat
sudo pip3 install pynvim
brew install --cask iterm2
brew tap homebrew/cask-fonts
brew install font-fira-code-nerd-font
brew install font-iosevka-nerd-font
brew install --cask monitorcontrol
### Add tmux-256colors to ncurses
/opt/homebrew/Cellar/ncurses/6.3/bin/infocmp -x tmux-256color >tmux-256color.src
sudo /usr/bin/tic -x tmux-256color.src
### Update iTerm2 prefs
# General - Selection
# Triple-click selects (off)
# Applications in terminal may access clipboard (on)
# Appearance - Windows
# Show window number (off)
# Hide scrollbars (on)
# Show line under title bar (off)
# Profiles - Colors
# Solarized Dark
# Profiles - Text
# Font FiraCode Nerd Font Mono
# Use built-in Powerline (on)
# Profiles - Window
# Size 100x50
# Use transparency (off)
# Profiles - Terminal
# Scrollback (20k)
# Disable session-initiated window resizing (Off)
# Terminal may report window title (on)
# Notifications, filter, turn off Bell & Session Ended
# Pointer - General
# All off
# Pointer - Bindings
# Remove all or click bindings
# Advanced
# Drawing - Underline OSC 8 hyperlinks (off)
# General - Perform dictionary lookups (off)
# Mouse - Underline Semantic (off)
### Switch iTerm to Solarized Dark and update
# Selection backgroun 073642 -> eee8d5
# Cursor color 839496 -> fdf6e3
# Add objc to highlight
# edit /usr/local/etc/highlight/filetypes.conf
# Add: { Lang="objc", Extensions={"m"} },
########## EL7
##########
# EPEL
sudo yum install epel-release
# emacs repo
URL=https://copr.fedorainfracloud.org/coprs/outman/emacs/repo/epel-7/outman-emacs-epel-7.repo
curl -# -m 8 $URL -o /etc/yum.repos.d/emacs.repo
yum update emacs-nox
# Packages
sudo yum install colordiff cscope neovim stow global highlight the_silver_searcher emacs-nox ctags
sudo yum install python2-pip pythong34-devel python34-pip
sudo pip3 install typing neovim
# Update VISUDO
sudo visudo
# Add "hunter ALL = NOPASSWD: ALL"
# For VMWare
sudo apt install open-vm-tools open-vm-tools-desktop
sudo mkdir /mnt/hgfs
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
sudo vi /etc/fstab
# Add ".host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0"
########## Debian based
##########
sudo apt install apt-file build-essential emacs git silversearcher-ag vim zsh highlight stow colordiff ripgrep xclip hexedit unzip lua5.1 luarocks
sudo apt install libevent-dev ncurses-dev bison pkg-config libutempter-dev
sudo apt remove tmux neovim fzf
sudo apt install bat fd-find
ln -s $(which batcat) ~/.local/bin/bat
ln -s $(which fdfind) ~/.local/bin/fd
# Install Rust(up)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install bob-nvim
cargo install bob-nvim
bob install stable
bob use stable
# Install tmux
sudo apt install libevent-dev ncurses-dev build-essential bison pkg-config libutempter-dev
wget https://github.com/tmux/tmux/releases/download/3.5a/tmux-3.5a.tar.gz
tar -xf tmux-3.5a.tar.gz
cd tmux-3.5a
./configure & make
sudo make install
# Install fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
cp bins over to .local/bin
# Install fish
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
# Install fisher (in fish)
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
# Install Tide
fisher install IlanCosman/tide@v6
tide configure --auto --style=Rainbow --prompt_colors='True color' --show_time='24-hour format' --rainbow_prompt_separators=Angled --powerline_prompt_heads=Sharp --powerline_prompt_tails=Flat --powerline_prompt_style='Two lines, character' --prompt_connection=Disconnected --powerline_right_prompt_frame=No --prompt_spacing=Compact --icons='Few icons' --transient=No
# Install fzf.fish
fisher install PatrickF1/fzf.fish
fzf_configure_bindings --directory=\ct
# Install sponge (history cleaner)
fisher install meaningful-ooo/sponge
# Install fzf-marks (bookmark mgr)
fisher install urbainvaes/fzf-marks
# Install wezterm
cargo install wezterm
########## Setup tools
##########
# Install tpm (tmux)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install powerlevel10k
git clone https://github.com/romkatv/powerlevel10k ~/.oh-my-zsh/custom/themes/powerlevel10k
# update colored-man-pages colors
patch -d ~/.oh-my-zsh -p1 < ~/.dotfiles/oh-my-zsh-colored-man.diff
# Install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Stow
git clone https://github.com/HunterWare/dotfiles ~/.dotfiles
cd .dotfiles
mv ~/.bashrc ~/.bashrc.orig
mv ~/.zshrc ~/.zshrc.orig
stow bash emacs tmux vim zsh neovim fish
# Fix solarized theme
patch -p1 ~/.emacs.d/elpa/color-theme-solarized-20171024.825/solarized-definitions.el < solarized-definitions.el.diff