Initial dotfiles — tmux nord, shell aliases, gitconfig
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# dotfiles
|
||||
|
||||
Personal configs for terminal life.
|
||||
|
||||
```
|
||||
_ _ _____ _
|
||||
(_)| ||___ (_)
|
||||
_ | | / / _
|
||||
| ||_ | / /| |
|
||||
|_| |_|/_/ |_|
|
||||
```
|
||||
|
||||
## What is here
|
||||
|
||||
- **tmux** — Nord theme, vim keybinds, prefix `C-a`
|
||||
- **shell** — aliases, prompt, PATH
|
||||
- **gitconfig** — identity, shortcuts
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
git clone https://i47i.unix.id.lv/i47i/dotfiles.git ~/.dotfiles
|
||||
cd ~/.dotfiles && ./install.sh
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
WTFPL
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# i47i shell aliases
|
||||
|
||||
alias ll="ls -lah --color=auto"
|
||||
alias la="ls -A --color=auto"
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
alias g="git"
|
||||
alias gs="git status -sb"
|
||||
alias gl="git log --oneline --graph -20"
|
||||
alias gd="git diff"
|
||||
alias gp="git push"
|
||||
alias t="tmux"
|
||||
alias ta="tmux attach -t"
|
||||
alias tl="tmux list-sessions"
|
||||
alias wct="ssh fr1 -t \"tmux attach -t irc\""
|
||||
alias v="vim"
|
||||
alias k="kubectl"
|
||||
alias kgp="kubectl get pods"
|
||||
alias kgs="kubectl get svc"
|
||||
@@ -0,0 +1,25 @@
|
||||
[user]
|
||||
name = i47i
|
||||
email = i47i@i47i.tk
|
||||
|
||||
[alias]
|
||||
st = status -sb
|
||||
co = checkout
|
||||
br = branch
|
||||
ci = commit
|
||||
lg = log --oneline --graph --decorate -20
|
||||
last = log -1 HEAD --stat
|
||||
unstage = reset HEAD --
|
||||
|
||||
[core]
|
||||
editor = vim
|
||||
pager = less -FRX
|
||||
|
||||
[color]
|
||||
ui = auto
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
ln -sf "$DIR/tmux.conf" ~/.tmux.conf
|
||||
ln -sf "$DIR/gitconfig" ~/.gitconfig
|
||||
|
||||
echo "source $DIR/aliases.sh" >> ~/.bashrc 2>/dev/null || true
|
||||
echo "Done. Restart your shell or: source ~/.bashrc"
|
||||
@@ -0,0 +1,59 @@
|
||||
# i47i tmux config — Nord theme
|
||||
|
||||
# Prefix
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# General
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
set -g history-limit 50000
|
||||
set -g mouse on
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
set -sg escape-time 0
|
||||
|
||||
# Vi mode
|
||||
setw -g mode-keys vi
|
||||
bind -T copy-mode-vi v send -X begin-selection
|
||||
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
||||
|
||||
# Splits
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# Pane navigation
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Resize
|
||||
bind -r H resize-pane -L 5
|
||||
bind -r J resize-pane -D 5
|
||||
bind -r K resize-pane -U 5
|
||||
bind -r L resize-pane -R 5
|
||||
|
||||
# Nord palette
|
||||
nord0="#2e3440"
|
||||
nord1="#3b4252"
|
||||
nord3="#4c566a"
|
||||
nord4="#d8dee9"
|
||||
nord8="#88c0d0"
|
||||
nord9="#81a1c1"
|
||||
nord11="#bf616a"
|
||||
nord14="#a3be8c"
|
||||
|
||||
# Status bar
|
||||
set -g status-style "bg=$nord1,fg=$nord4"
|
||||
set -g status-left "#[fg=$nord0,bg=$nord9,bold] #S #[default] "
|
||||
set -g status-right "#[fg=$nord4]%H:%M #[fg=$nord8]%d-%b "
|
||||
set -g status-left-length 30
|
||||
setw -g window-status-format " #I:#W "
|
||||
setw -g window-status-current-format "#[fg=$nord0,bg=$nord8,bold] #I:#W "
|
||||
|
||||
# Pane borders
|
||||
set -g pane-border-style "fg=$nord3"
|
||||
set -g pane-active-border-style "fg=$nord8"
|
||||
Reference in New Issue
Block a user