From c847069e84dfe002f29229a5216698b70a7da261 Mon Sep 17 00:00:00 2001 From: i47i Date: Mon, 23 Mar 2026 12:48:05 +0000 Subject: [PATCH] =?UTF-8?q?Initial=20dotfiles=20=E2=80=94=20tmux=20nord,?= =?UTF-8?q?=20shell=20aliases,=20gitconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++++ aliases.sh | 19 ++++++++++++++++++ gitconfig | 25 +++++++++++++++++++++++ install.sh | 9 +++++++++ tmux.conf | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 README.md create mode 100644 aliases.sh create mode 100644 gitconfig create mode 100755 install.sh create mode 100644 tmux.conf diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b1f85c --- /dev/null +++ b/README.md @@ -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 diff --git a/aliases.sh b/aliases.sh new file mode 100644 index 0000000..b917db7 --- /dev/null +++ b/aliases.sh @@ -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" diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..209f483 --- /dev/null +++ b/gitconfig @@ -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 diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..aee82c4 --- /dev/null +++ b/install.sh @@ -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" diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..af530a8 --- /dev/null +++ b/tmux.conf @@ -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"