Skip to content

Instantly share code, notes, and snippets.

View iledarn's full-sized avatar

Ildar iledarn

  • Philippines
View GitHub Profile
@iledarn
iledarn / denite.md
Created June 19, 2018 16:53 — forked from dlants/denite.md
denite setup with interactive ag pattern-search of project contents

Files

First things first, I want to use ag to search through my project files. Coming from fzf, I like to have two bindings for this -- one that respects my projects .gitignore and one that does not. The latter is helpful if I want to examine a built file or look at a node_module dependency while working on my js project.

I use an alias for file_rec source to toggle the -u flag on ag. Now, <C-P> searches in my git files, and <C-O> searches everything.

" denite file search (c-p uses gitignore, c-o looks at everything)
map <C-P> :DeniteProjectDir -buffer-name=git -direction=top file_rec/git<CR>
map  :DeniteProjectDir -buffer-name=files -direction=top file_rec
@iledarn
iledarn / bash_aliases-docker-compose
Created September 26, 2018 08:18
Bash Aliases for Docker-Compose
# docker-compose aliases
### How to install/use it
1. `curl -ko $HOME/.bash_aliases-docker-compose https://gist.githubusercontent.com/jodumont/d8ade3ab173700e3369f04fbe0334fde/raw/ced78642a5682e7ec6ee7fc89367b929ef35f366/bash_aliases-docker-compose`
2. `echo -e "\nif [ -f ~/.bash_aliases-docker-compose ]; then \n. ~/.bash_aliases-docker-compose\nfi" >> $HOME/.bashrc`
3. `. $HOME/.bashrc`
## dcu == Docker-Compose Up
alias dcu="docker-compose up -d --remove-orphans"
## dcl == Docker-Compose Logs