configuration files for dotfiles and configuration files I use across machines
git clone --recursive git@github.com:radiomime/.dot.git
# add to path
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install \
black \
fish \
go \
isort \
lazygit \
neovim \
stow \
fzf \
tmux
for newer neovim
```sh
brew install neovim --HEAD
```
# fish
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish -y
# install snap
sudo apt update
sudo apt install snapd
# go
sudo snap install go --classic
sudo snap install rustup --classic
rustup default stable
# nvim
sudo snap install nvim --classic
go install github.com/jesseduffield/lazygit@latest
installed with brew on mac
Update shell to fish
# add to /etc/shells. May need to echo the string, and add via tee
which fish | xargs tee -a /etc/shells
which fish | xargs chsh -s
installed with brew on mac
apt install stow
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
Note: the above command also will update kitty
- install rust using the linked script
uninstall
```sh
rustup self uninstall
```
cargo install \
bandwhich \
bat \
bottom \
exa \
fd-find \
ripgrep \
rm-improved \
rnr \
stylua \
tree-sitter-cli \
watchexec-cli
# other possible cool ones
# diskonaut from https://github.com/imsnif/diskonaut
# du-dust from https://github.com/bootandy/dust
# broot from https://github.com/Canop/broot
switch (uname)
case Linux
echo linux cargo package setup
sudo setcap cap_sys_ptrace,cap_dac_read_search,cap_net_raw,cap_net_admin+ep (which bandwhich)
case Darwin
echo osx cargo package setup
case '*'
echo no setup defined for os
end
git clone --depth 1 git@github.com:ryanoasis/nerd-fonts.git ~/.local/share/nerd-fonts
# and to install
~/.local/share/nerd-fonts/install.sh
- Install over the web or use the convenience script
pyenv seems useful, but I'm not sold yet.
git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \
cd ~/.pyenv && src/configure && make -C src && \
set -Ux PYENV_ROOT $HOME/.pyenv && \
set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths
brew install starship
curl -sS https://starship.rs/install.sh | sh
stow -v \
--dotfiles \
--restow \
bash \
fish \
git \
kitty \
nvim \
starship \
tmux
- I change mission control --> 'move left/right a space' shortcuts to line up with PopOS
keyboard shortcut overwrites
I found these to conflict with MacOS built-ins a little too much for my comfort.
- @ : command
- $ : shift
- ~ : alt
- ^ : ctr
defaults read -g NSUserKeyEquivalents
defaults read com.brave.Browser NSUserKeyEquivalents
# defaults
defaults write -g NSUserKeyEquivalents -dict-add "Copy" -string "^c"
defaults write -g NSUserKeyEquivalents -dict-add "Paste" -string "^v"
# brave
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "New Tab" -string "^t"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "New Window" -string "^n"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "Close Tab" -string "^w"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "Reopen Closed Tab" -string "^\$t"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "Open Location..." -string "^l"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "Reload This Page" -string "^r"
defaults write com.brave.Browser NSUserKeyEquivalents -dict-add "Find..." -string "^f"
fisher installs with uu
# stable (needed for copilot)
nvm install lts
set --universal nvm_default_version lts
```
```sh
# latest npm/node
nvm install latest
set --universal nvm_default_version latest
Blow up packer
printf "*** packer base dir ***\n"
ls ~/.local/share/nvim/site/pack/packer
printf "*** packer opt dir ***\n"
ls ~/.local/share/nvim/site/pack/packer/opt
printf "*** packer start dir ***\n"
ls ~/.local/share/nvim/site/pack/packer/start
Are all your plugins there? If so,
rip ~/.local/share/nvim/site/pack/packer
nvim --headless -c 'exit'
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
linux
```sh
sudo apt install ctop
```
mac
```sh
brew install ctop
```