Skip to content

Repository files navigation

.dotfiles

A set of zsh, git, tig, and tmux configuration files.

Installation

bash <(curl -fsSL https://raw.githubusercontent.com/andyone/dotfiles/master/install.sh)

Extra commands

NameDescription
txStart or attach to TMUX session
txn {name}Rename current pane
txcRename 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 shortcut
g …grep shortcut
d …Docker shortcut
dr …Docker run shortcut
de …Docker exec shortcut
k …kubectl shortcut
kd …kubectl describe shortcut
ka …kubectl apply -f shortcut
kn {namespace}Set k8s namespace
kl {resource} {option}…View k8s resource logs
ks {pod}Connect to k8s pod
lll …List files and directories using eza
llg …List files and directories using eza with git status
hf …grep over zsh history
gocCreate HTML coverage report for Go sources
gcl {org}/{repo}Clone repository with Go sources
gci {path}Alias for golangci-lint
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 undoUndo previous commit

Git aliases

AliasOriginal
ststatus
cicommit
brbranch
cocheckout
dfdiff
dfiicdiff
lglog

Tmux hotkey cheatsheet

HotkeyAction
CTRL+BPrefix key
CTRL+TToggle panes names
CTRL+ZToggle pane zoom
CTRL+QShow session tree
CTRL+LClear terminal
CTRL+BTShow current time
CTRL+BСCreate new window
CTRL+BRRearrange windows
CTRL+BWList windows
CTRL+B|Split window vertically
CTRL+B-Split window horizontally
CTRL+B,Set window name
CTRL+BNNext window
CTRL+BPPrevious window
CTRL+BAToggle panes syncing
CTRL+Move current window to the left (reorder windows)
CTRL+Move current window to the right (reorder windows)
CTRL+BQShow pane numbers
CTRL+BXKill pane
ALT+Select pane on the left
ALT+Select pane on the right
ALT+Select upper pane
ALT+Select bottom pane
CTRL+BSpaceSet panes layout
CTRL+BALT+1Set panes layout to layout 1
CTRL+BALT+2Set panes layout to layout 2
CTRL+BALT+3Set panes layout to layout 3
CTRL+BALT+4Set panes layout to layout 4
CTRL+BALT+5Set panes layout to layout 5
CTRL+BALT+6Set panes layout to layout 6
CTRL+BPgUpScroll up
CTRL+BPgDnScroll down
F1Select window #1
F2Select window #2
F3Select window #3
F4Select window #4
F5Select window #5
F6Select window #6
F7Select window #7
F8Select window #8
F9Select window #9
F10Select window #10
F11Select window #11
F12Kill current window
CTRL+RHistory search with fzf

For function keys support in XShell 5+ you should use custom mappings file.

About

.dotfiles

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages