This repository aims to achieve the highest beauty in terms of Unix configuration dot-files. This goal is not too ambitious since we are starting from my personal settings (he, he, he 😉) which could be improved with forking and pull-requesting further updates.
- Since I'm still using Bash (and I'm not moving to
zsh
) we should tell Mac to revert to the old shell.
System Settings…
/Users & Groups
/ (^-click
)Advanced options…
/Login shell
choose/bin/bash
. - Install
brew
.
Clone the repository
git clone https://github.com/Atcold/Unix-dot-files.git
Then, after having chosen the subfolder of interest (say for example Vim
)
cd Unix-dot-files
cd Vim
./install.sh
Don't forget to backup your previous configuration, since it will be overwritten.
Installation is required once only. Then you will simply need to pull in any new update.
Let's give to our Unix some pretty colours!
cd
into Ubuntu
and run install.sh
. It will take care of everything.
If you'd like only to fix the colours, then run Ubuntu/fix_colours.sh
only.
In order to customise your Terminal application, you can simply import the file Mac-Terminal/Monokai.terminal
and set it as default.
Since you will never use your Caps Lock key, let's get another Ctrl, handy for our left pinkie when writing code in Vim within Tmux.
(Remember that Esc can be obtained by typing ^[
, that is Ctrl-[.)
In /etc/default/keyboard
we ought to change something, so
sudo vim /etc/default/keyboard +/XKBOPTIONS
and let's set
XKBOPTIONS="ctrl:nocaps,compose:ralt"
To exchange the position of Caps Lock and Ctrl, instead
XKBOPTIONS="ctrl:swapcaps,compose:ralt"
and, therefore, run
sudo dpkg-reconfigure keyboard-configuration
We have also mapped the AltGr (the Alt on the right) to the compose-key, so that we can write accented letters in Ubuntu. For example, we can type an È by typing AltGr-` Shift-E. We can type an é with AltGr-' E.
System Settings…
/ Keyboard
/ Keyboard Shortcuts…
/ Modifier Keys
/ Caps Lock
> choose ^ Control
.