curl https://raw.githubusercontent.com/mightyguava/dotfiles/master/install.sh | bash
The repo is bootstrapped to $HOME/.dotfiles
.
To disable slow YCM and cmake install for VIM, first run
export NO_INSTALL_CMAKE=1
export NO_INSTALL_YCM=1
./install.sh [copy] [<target_dir>]
If run without arguments, symlinks the dotfiles to ${HOME}
If 'copy' is provided, copies instead of symlinks, but skips the git submodules
If a <target_dir> is provided, symlinks/copies to target_dir instead of ${HOME}
switch_repos
is a script for switching between git repositories that follow the Go workspace
convention. You code does not have to be Go, but just that it follows the same directory scheme. See
How to Write Go Code for details.
switch_repos
consists of:
- A short bash script
- An alias
g
for activating the script (it cannot be invoked directly as a command)
In addition to switching repos, it also supports entering virtualenvs
if it detects a Python repo,
and you have previously created a virtualenv using virtualenvwrapper
with the same name as the repo
root folder.
Finally, it also supports zsh
autocompletions.
First make sure you have
virtualenvwrapper
installed.
- Place
bin/switch_repos
on your$PATH
, like in/usr/local/bin
- Add this your
.zshrc
or.bashrc
alias g="source ~/bin/switch_repos"
- If you use zsh, put
zsh/_switch_repos
under~/.zsh
. (This assumes you have zsh configured to support autocompletion at all) - Source
.zshrc
or.bashrc
, or open a new shell.
g <repo_name>
switches to the repo and activates the virtualenv if one exists with the same name
as the repo
g
at any subfolder in the repo tree will switch to the root.