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.(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 👍)
-
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.
-
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
- 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
- SideBarEnhancements
- Anaconda
- Requirementstxt
- GitGutter
- Markdown Preview
- Python Breakpoints (Ctrl+Shift+b) to toggle breakpoint
- SublimeREPL Most important shortcut (Ctrl+,)+f to pass the file to the interpreter. Follow these instructions to get a nice workflow: ctrl+shift+b to add breakpoints and ctrl+b to build.
For linting related stuff have a look here
https://github.com/SublimeText/LaTeXTools#linux <- this guy is super long...(what about http://vim-latex.sourceforge.net/ for vim instead)
- sudo apt-get install texlive ghostscript imagemagick biber texlive-xetex
https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/
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
Use Settings Sync
extension to upload/download settings from github gist cloudSettings
.
(Token is stored in gdrive Others
folder in PhD MIT
)