Dotfiles are used to customize the system. Those are mine for linux.
Run this :
cd ~/
git clone https://github.com/polohb/dotfiles.git
cd dotfiles/scripts/
bash install.sh
What the script do :
- backup
~/.dotfilesto~/.dotfiles_old/ - symlinks files from
~/dotfiles/home/to the home directory~/
Run this :
cd ~/dotfiles/scripts/
bash uninstall.sh
What the script do :
- delete current
~/.dotfilesfiles - copy saved
~/.dotfiles_old/.dotfilesto the home directory~/
├── home
│ ├── bash_alias
│ ├── bash_logout
│ ├── bash_prompt
│ ├── bashrc
│ ├── profile
│ ├── screenrc
│ └── vimrc
├── prompt.png
├── README.md
├── root
│ ├── bashrc
│ ├── install.sh
└── scripts
├── install.sh
├── uninstall.sh
└── vars.sh
-
ls :
-
llfor ='ls -lh' -
lafor 'ls -A' -
lfor 'ls -CF' -
llafor 'll -Al' -
tar :
-
tarcfor 'tar -cvvzf' -
tarxfor 'tar -xvvzf' -
tartfor 'tar -tvvzf -
git (only if
/usr/bin/gitexist) : -
gcofor 'git checkout' -
gcfor 'git commit' -
g+for 'git add' -
gpushfor 'git push' -
gpomfor 'git push origin master' -
gpullfor 'git pull' -
gsfor 'git status' -
gbfor 'git branch' -
glfor 'git log' -
gdifffor 'git diff' -
docker (only if
/usr/bin/dockerexist) :dockerkillallto kill all running containersdockercleancto delete all stopped containersdockercleanito delete all untagged imagesdockercleanto delete all stopped containers and all untagged images
and others minors alias (@see ~/dotfiles/home/bash_alias)
- Define some color for a more simple PS1 def.
- Prompt will be like this :
- Enable
~/.bashrcif running bash. - If
~/bin/exist then add it to PATH.
- Customize screen with some general option.
- Add some keybindings for a more simple navigation :
F1select window 0F2select window 1F3select window 2F4select window 3F5go to previous windowF6go to next windowF7change the titleF8create a new windowF9kill the current window
Todo : update vimrc description.
This files contains some essentials vars :
dotfiles_dir: dotfiles directory that contains the dotfiles to copyolddotfiles_dir: dotfiles backup directoryfiles: list of dotfiles we want to link to our home directory
Add or remove name in the files variable if you do not want the default ones.
Just launch this script to install the dotfiles.
It will :
- backup
~/.dotfilesto~/.dotfiles_old/ - create symlinks files from
~/dotfiles/home/to the home directory~/
Just launch this script to get back your dotfiles configuration.
