MacOS Install iTerm2
- iTerm Color Scheme
- Atom One Dark theme for Terminal
Preferences->Profiles->Terminal->Terminal Emulation-> Report Terminal Type and chosingxterm-256colorPreferences->Profiles->Text->Non-ASCII Font->Change Font-> Select Instelled nerd-fontsPreferences->Profiles->Keys->Key Mappings->Presets-> SelectNatural Text Editing
Windows Config winget
winget install `
Microsoft.WindowsTerminal `
Microsoft.PowershellWindows Install Scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install `
age `
bitwarden-cli `
chezmoi `
cloudflared `
git `
sudo `
neovimMacOS Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle
brew bundle --file Brewfile-cask
# Needs Appstore login
brew bundle --file Brewfile-app *nix Config mise
mise i
mise ls
# rustup
# https://mise.jdx.dev/lang/rust.html
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh*nix Config fish shell
## x86
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
## arm
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish*nix Install Fisher
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisherInstall Dotfiles with chezmoi
# need key.txt (age) on ~
chezmoi init --ssh --apply dfdgsdfg
# ssh config
chezmoi init --prompt --apply
chezmoi data*nix Config mise
# https://mise.jdx.dev/ide-integration.html#jetbrains-editors-intellij-rustrover-pycharm-webstorm-rubymine-goland-etc
ln -s ~/.local/share/mise ~/.asdfConfig Neovim
npm i -g neovim
pip install pynvim
gem install neovimhttps://playwright.dev/python/docs/intro
conda config --add channels conda-forge
conda config --add channels microsoft
conda install pytest-playwright- Turn off password auth
sudo tee /etc/ssh/sshd_config.d/turnoff-password.conf << EOF
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
EOF# https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
sudo Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
sudo Set-Service -Name sshd -StartupType 'Automatic'
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {
Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."
New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
} else {
Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."
}
$sshd_config = "$env:PROGRAMDATA\ssh\sshd_config"
$turnoffpassword = @"
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
"@
sudo Add-Content $sshd_config $turnoffpassword
(sudo Get-Content $sshd_config) -replace 'Match Group administrators', '#Match Group administrators' | Set-Content $sshd_config
(sudo Get-Content $sshd_config) -replace 'AuthorizedKeysFile __PROGRAMDATA__', '#AuthorizedKeysFile __PROGRAMDATA__' | Set-Content $sshd_config
sudo Restart-Service sshd