-
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 the first two til's and updated the README
- Loading branch information
Matt Chandler
committed
Feb 12, 2016
1 parent
cd792ba
commit 7804513
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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,42 @@ | ||
# TIL | ||
|
||
> Today I Learned | ||
A collection of concise write-ups on small things I learn day to day across a | ||
variety of languages and technologies. These are things that don't really | ||
warrant a full blog post. | ||
|
||
--- | ||
|
||
### Categories | ||
|
||
* [Git](#git) | ||
* [Vim](#vim) | ||
|
||
--- | ||
|
||
### Git | ||
|
||
* [Move Multiple Files](git/move-multiple-files.md) | ||
|
||
### Vim | ||
|
||
* [Search As You Type](vim/search-as-you-ype.md) | ||
|
||
## About | ||
|
||
I got this idea from [jbranchaud/til](https://github.com/jbranchaud/til), who got it from [thoughtbot/til](https://github.com/thoughtbot/til). | ||
|
||
## Other TIL Collections | ||
|
||
* [Today I Learned by Hashrocket](https://til.hashrocket.com) | ||
* [jbranchaud/til](https://github.com/jbranchaud/til) | ||
* [jwworth/til](https://github.com/jwworth/til) | ||
* [thoughtbot/til](https://github.com/thoughtbot/til) | ||
|
||
## License | ||
|
||
© 2016 Matt Chandler | ||
|
||
This repository is licensed under the MIT license. See `LICENSE` for | ||
details. |
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,9 @@ | ||
If you have to move a lot of files in Git at the same time, here is a helpful Bash script to do it: | ||
|
||
```bash | ||
for FILE in src/*.js; do git mv $FILE new-dir/; done | ||
``` | ||
|
||
The first time I used this was when I needed to adjust the casing on file names while doing a JavaScript refactor. Since Windows is not case-sensitive, adjusting the file system did not affect Git. | ||
|
||
Source: http://stackoverflow.com/a/2305537/54727 |
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,11 @@ | ||
To start searching a file as you type the search string, turn on the `incsearch` option in your `.vimrc` file: | ||
|
||
``` | ||
set incsearch | ||
``` | ||
|
||
You can also turn on the highlighting of search results: | ||
|
||
``` | ||
set hlsearch | ||
``` |