Skip to content

Atcold/Unix-dot-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unix-dot-files

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.

Setting up your Mac

  • 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.

Installation instructions

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.

Better colours

Let's give to our Unix some pretty colours!

Ubuntu

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.

MacOS

In order to customise your Terminal application, you can simply import the file Mac-Terminal/Monokai.terminal and set it as default.

Substituting Caps Lock with Ctrl

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-[.)

Ubuntu

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.

MacOS

System Settings… / Keyboard / Keyboard Shortcuts… / Modifier Keys / Caps Lock > choose ^ Control.

About

Mac OS X and Linux optimal configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published