Or what others call dotfiles.
- Install zsh, prezto, etc.
- Install git, configure ssh github access, etc.
- Install vim, tmux, etc.
- Then:
# Clone the project
git clone [email protected]:nandilugio/shell-config.git ~/.shell-config
# Link/copy dotfiles
for f in $(ls ~/.shell-config/common_dotfiles); do ln -s ~/.shell-config/common_dotfiles/$f ~/.$f; done
ln -s ~/.shell-config/bin ~/bin
# TODO: Check if there's anything specific for the platform
# Configure the shell
echo -e "\n\n# Me\nsource bin/shell-start.zsh\n" >> ~/.zprofile
vim ~/bin/shell-start.zsh ~/.zprofile ~/.zshrc # <---
# Set git profiles
cp ~/.shell-config/gitconfig_host.example ~/.gitconfig_host
vim ~/.gitconfig_host # <---
# ...and set git profile for the project
pushd ~/.shell-config
g profile-pers
popd
gsettings set org.gnome.shell.app-switcher current-workspace-only true
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
Set this command to run for new windows:
/bin/sh -c 'PATH=/usr/local/bin:$PATH ~/bin/n.tmux-new-terminal-window'
https://stackoverflow.com/questions/33270381/delete-forward-character-iterm2-osx
Then, to be as compatible to my Linux i3
setup as possible, without much of a hassle:
- Swap Cmd and Opt
- Remap Spotlight so it's in center key (old Option/Meta, now Cmd)
- Clear all general keybindings (including nav shortcuts, etc.)
- In profile > keys:
- Ensure "Report modifiers using CSI u" is checked
- Both Option/Meta keys to send
Esc+
(fortmux
) - Load preset: Natural text editing
- Remove
M-left
andM-right
, now conflicting withtmux
mappings
Remember now Option/Meta, in the center, is Command. We want Rectangle in that center key (M
below).
Unmap everything, then map:
- * Half:
S-M-*
- Fullscreen:
M-f
- Prev/Next Display:
C-S-M-Left/Right