-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added dotfiles-update script which will successfully download the dotfiles repo and set up symlinks when run from an arbitrary directory. * Removed vim configuration files and vundle plugin module as vim configuration and plugins will now be handled via nix configuration
- Loading branch information
Showing
8 changed files
with
33 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,23 @@ | ||
Requirements | ||
------------ | ||
The directory structure of these dotfiles is designed to be used with [GNU Stow](http://www.gnu.org/software/stow/). This repo also includes the vim plugin manager [Vundle](https://github.com/gmarik/Vundle.vim) as a submodule. | ||
|
||
Quick Installation | ||
------------------ | ||
``` | ||
git clone https://github.com/lihop/.dotfiles.git | ||
.dotfiles/install.sh | ||
``` | ||
Installation | ||
------------ | ||
1. Install the dotfiles package using [this](https://github.com/lihop/nixos/blob/master/pkgs/dotfiles.nix) nix expression. | ||
2. Run the command `dotfiles-update`. | ||
|
||
Usage | ||
----- | ||
``` | ||
git clone --recursive https://github.com/lihop/.dotfiles.git | ||
``` | ||
``` | ||
cd ~/.dotfiles | ||
``` | ||
To symlink all the dotfiles: | ||
``` | ||
cd ~/.dotfiles | ||
for dir in */; do stow $dir; done | ||
``` | ||
To symlink the dotfiles of an individual application (e.g. vim) use the following from within the `.dotfiles` directory: | ||
To symlink the dotfiles of an individual application (e.g. xmonad): | ||
``` | ||
stow vim | ||
stow xmonad | ||
``` | ||
To remove the symlink: | ||
``` | ||
stow -D vim | ||
stow -D xmonad | ||
``` | ||
|
||
|
||
By default, the Vundle submodule is not on a branch. This means that Vundle will not be able to update itself using `git pull`. To check out the master branch, run the following command from within the `.dotfiles` directory: | ||
``` | ||
git submodule foreach --recursive git checkout master | ||
``` | ||
To update/install Vundle/Plugins (assuming you have the `vim` directory stowed): | ||
``` | ||
vim -c VundleUpdate -c quitall | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
[email protected]:lihop/dotfiles.git | ||
DOTFILES_DIR=$HOME/.dotfiles | ||
|
||
download() { | ||
git clone $DOTFILES_SRC $DOTFILES_DIR | ||
} | ||
|
||
update() { | ||
if [ ! -d $DOTFILES_DIR ]; then | ||
download | ||
cd $DOTFILES_DIR | ||
else | ||
cd $DOTFILES_DIR | ||
git pull | ||
fi | ||
for dir in */; do | ||
stow $dir | ||
done | ||
} | ||
|
||
update |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule Vundle.vim
deleted from
0b28e3
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.