Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andyone/dotfiles
.dotfiles
https://github.com/andyone/dotfiles
git tmux zsh
Last synced: 14 days ago
JSON representation
.dotfiles
- Host: GitHub
- URL: https://github.com/andyone/dotfiles
- Owner: andyone
- Created: 2017-06-16T23:19:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-11T22:04:32.000Z (3 months ago)
- Last Synced: 2024-10-04T19:44:29.571Z (about 1 month ago)
- Topics: git, tmux, zsh
- Language: Shell
- Homepage: https://andy.one/dotfiles
- Size: 169 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## `.dotfiles`
A set of zsh, git, tig, and tmux configuration files.
### Installation
```
bash <(curl -fsSL https://andy.one/dotfiles/install.sh)
```### Extra commands
| Name | Description |
|------|-------------|
| `tx` | Start or attach to TMUX session |
| `txn {name}` | Rename current pane |
| `txc` | Rename current TMUX window to short path to current directory |
| `sshk …` | `ssh` command without checking and saving host key |
| `ssht …` | `sshk` to many hosts at once (_requires TMUX session_) |
| `scpk …` | `scp` command without checking and saving host key |
| `dl …` | Download one or more files using `curl` |
| `e …` | Editor (_nano_) shortcut |
| `b …` | [`bat`](https://github.com/sharkdp/bat) shortcut |
| `g …` | `grep` shortcut |
| `d …` | Docker shortcut |
| `dr …` | Docker `run` shortcut |
| `de …` | Docker `exec` shortcut |
| `hf …` | `grep` over zsh history |
| `goc` | Create HTML coverage report for Go sources |
| `gcl {org}/{repo}` | Clone repository with Go sources |
| `bkp {file}` | Create backup for file or directory |
| `flat {file}` | Print flatten list of records |
| `git release {version}` | Add signed version tag for the latest commit to the master branch |
| `git tag-delete {tag}` | Delete tag everywhere |
| `git tag-update {tag}` | Update tag to the latest commit |
| `git pr {pr}` | Fetch PR with given ID from GitHub |
| `git undo` | Undo previous commit |### Git aliases
| Alias | Original |
|-------|------------|
| `st` | `status` |
| `ci` | `commit` |
| `br` | `branch` |
| `co` | `checkout` |
| `df` | `diff` |
| `dfi` | `icdiff` |
| `lg` | `log` |### Tmux hotkey cheatsheet
| Hotkey | Action |
|--------|--------|
| CTRL+B | Prefix key |
| CTRL+T | Toggle panes names |
| CTRL+Z | Toggle pane zoom |
| CTRL+Q | Show session tree |
| CTRL+L | Clear terminal |
| CTRL+B → T | Show current time |
| CTRL+B → С | Create new window |
| CTRL+B → R | Rearrage windows |
| CTRL+B → W | List windows |
| CTRL+B → \| | Split window vertically |
| CTRL+B → \- | Split window horizontaly |
| CTRL+B → , | Set window name |
| CTRL+B → N | Next window |
| CTRL+B → P | Previous window |
| CTRL+B → A | Toggle panes syncing |
| CTRL+← | Move current window to the left (_reorder windows_) |
| CTRL+→ | Move current window to the right (_reorder windows_) |
| CTRL+B → Q | Show pane numbers |
| CTRL+B → X | Kill pane |
| ALT+← | Select pane on the left |
| ALT+→ | Select pane on the right |
| ALT+↑ | Select upper pane |
| ALT+↓ | Select bottom pane |
| CTRL+B → Space | Set panes layout |
| CTRL+B → ALT+1 | Set panes layout to layout 1 |
| CTRL+B → ALT+2 | Set panes layout to layout 2 |
| CTRL+B → ALT+3 | Set panes layout to layout 3 |
| CTRL+B → ALT+4 | Set panes layout to layout 4 |
| CTRL+B → ALT+5 | Set panes layout to layout 5 |
| CTRL+B → ALT+6 | Set panes layout to layout 6 |
| CTRL+B → PgUp | Scroll up |
| CTRL+B → PgDn | Scroll down |
| F1 | Select window #1 |
| F2 | Select window #2 |
| F3 | Select window #3 |
| F4 | Select window #4 |
| F5 | Select window #5 |
| F6 | Select window #6 |
| F7 | Select window #7 |
| F8 | Select window #8 |
| F9 | Select window #9 |
| F10 | Select window #10 |
| F11 | Select window #11 |
| F12 | Kill current window |
| CTRL+R | History search with [fzf](https://github.com/junegunn/fzf) |_For function keys support in XShell 5+ you should use custom [mappings file](xshell.tkm)._