/Dotfiles

Basic dotfiles repo for linux containing configs, aliases and setups for terminal, github, vim,...

Primary LanguageShell

My dotfiles

Dotfiles tested on Ubuntu 16.04 LTS.

Clone the repo: https://github.com/bielrv/dotfiles.git

Instructions

1- Change your current dot files so that they do not interfere with the install.

mv ~/.bashrc ~/.bashrc_backup
mv ~/.bash_profile ~/.bash_profile_backup
mv ~/.gitconfig ~/.gitconfig_backup
mv ~/.inputrc ~/.inputrc_backup
mv ~/.vimrc ~/.vimrc_backup
mv ~/.config/terminator ~/.config/terminator_backup

2- Find and replace the [user] fields with your details in the gitconfig file:

[user]
email = youremail
name = yourname

3- Install: ./install

4- Delete your backup files if you do not need them anymore.

Installs

Install the fonts for the vim configs to work well: https://github.com/powerline/fonts

Install Terminator

Then configure Terminator to use Liberation Mono for Powerline. Use Regular style and Size 10. Apply these changes in the Profile tab.

To unset +t shortcut that pops the trash in ubuntu on Mac sudo apt-get install compizconfig-settings-manager Run CompizConfig, go to ubuntu Unity Plugin and change the Key to show the Dash, Launcher and Help Overlay from to something like

Install Vundle to manage vim plugins

For sublime settings geared towards python development:

(Reference here)

(Note: so actually with Jupyter, there is no real need for all of this... :

  • Just make sure that you comment out the sourcing of virtualenvwrapper.sh 👍)
  1. Install package control: copy the Python code for Sublime Text 3 found here. Click View > Show Console to open the ST3 console. Paste the code into the console. Press enter. Reboot ST3.

  2. You can now install packages by using the keyboard shortcut cmd+shift+P. Start typing install until Package Control: Install Package appears. Press enter and search for available packages.

  3. For language specific settings click Sublime Text > Preferences > Settings – More > Syntax Specific – User. Then save the file using the following format: LANGUAGE.sublime-settings. So, for Python-specific settings, save the file as Python.sublime-settings.

  • As base use: save the code as Preferences.sublime-settings code **Before saving this, install Flatland Theme and add the following line: "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme" in the settings file.
  • As Python specific: save the config as Python.sublime-settings code

Other interesting packages for ST3

For linting related stuff have a look here

Sublime settings for Latex

https://github.com/SublimeText/LaTeXTools#linux <- this guy is super long...(what about http://vim-latex.sourceforge.net/ for vim instead)

  1. sudo apt-get install texlive ghostscript imagemagick biber texlive-xetex

Python utilities

To have a nice organization of virtual environments

pip install virtualenvwrapper
git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv

Note When sourcing ROS, it sets PYTHONPATH env variable which interferes with your usage of python. Specially when you set up a fresh new virtual environment with --no-site-packages, and you try to run pip freeze to see the current dependencies it will output plenty of ros and rqt things... If you just want to see your dependencies in your new venv then unset $PYTHONPATH variable. Nonetheless, your venv will still "use" the globally installed packages such as ros :O