docs: remove odds

main
Tran Hau 2021-04-22 03:47:58 +00:00
parent e72598388d
commit 5cc86f3292
3 changed files with 0 additions and 75 deletions

View File

@ -1,31 +0,0 @@
# [fzf](https://github.com/junegunn/fzf)
Should install using git.
Add to `~/.bashrc`, `~/.zshrc`:
```sh
# Use fd instead of find
# In some distributions, use fdfind instead of fd
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Colorscheme
export FZF_DEFAULT_OPTS='--color dark'
export FZF_DEFAULT_OPTS='--color light'
```
| Shorcut | Explain |
| -------- | ------------------------------------ |
| `CTRL-T` | search through files and directories |
| `CTRL-R` | search though command-line history |
Add to `~/.vimrc`, `~/.config/nvim/init.vim`:
```vim
set rtp+=~/.fzf
```
| Command | Explain |
| ------- | ------------------------------------------------------------ |
| `:FZF` | search through files and directories under current directory |

View File

@ -1,18 +0,0 @@
# rsync
| Distribution | Package |
| ------------ | ------- |
| Arch Linux | `rsync` |
| Ubuntu | `rsync` |
```sh
rsync -vah src dest
```
`--delete`: Delete files exist in dest but not exist in src.
`--ignore-existing`: Ignore updating existing files in dest.
`--exclude-from=FILE`: Exclude pattern files in FILE.
`-n`: Trial run.

View File

@ -1,26 +0,0 @@
# [bat](https://github.com/sharkdp/bat)
| Distribution | Package |
| ------------ | ------- |
| Arch Linux | `bat` |
| Ubuntu | `bat` |
List themes:
```sh
bat --list-themes
```
Edit config file at `~/.config/bat/config`:
```txt
--theme="YourFavoriteTheme"
--style="plain"
```
See more config option:
```sh
bat --help
```