Skip to content

ToniRV/dotfiles

Repository files navigation

My dotfiles

Meant for Ubuntu 16.04, with ROS kinetic.

Clone the repo: git clone git@github.com:ToniRV/dotfiles.git

Backup your previous dotfiles:

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

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

[user]
  email = youremail
  name = yourname

Install: ./install

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

You can safely ignore the rest of the README.md.

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.

-- Checkout http://sourabhbajaj.com/mac-setup/ for Mac setup

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

I haven't tried yet but, what about python devel in vim:

https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/

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

#TODO Check that vim is installed

VSCODE

Use Settings Sync extension to upload/download settings from github gist cloudSettings. (Token is stored in gdrive Others folder in PhD MIT)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published