expand tmux conf and fish aliases

This commit is contained in:
insects 2024-07-13 19:26:39 +02:00
parent 900abe247e
commit fda2c8f4ba
2 changed files with 87 additions and 23 deletions
dot_config

View file

@ -45,8 +45,8 @@ zoxide init fish | source
source ~/.config/fish/private.fish source ~/.config/fish/private.fish
# Environment variables # Environment variables
set -x EDITOR "nvim" set -x EDITOR nvim
set -x USER "lu" set -x USER lu
set -x SHELL (which fish) set -x SHELL (which fish)
set -x TERM xterm-256color set -x TERM xterm-256color
set -x GTK_IM_MODULE ibus set -x GTK_IM_MODULE ibus
@ -65,32 +65,54 @@ set -x TZ_LIST "Europe/Berlin;Berlin,America/New_York;US East,America/Los_Angele
# General Aliases # General Aliases
# Convenience for editing my shell config # Convenience for editing my shell config
alias editconfig "chezmoi edit ~/.config/fish/config.fish; and chezmoi apply; and source ~/.config/fish/config.fish" alias editconfig "chezmoi edit ~/.config/fish/config.fish; and chezmoi apply; and source ~/.config/fish/config.fish"
# Some other aliases # General aliases
alias doco "docker-compose" alias c clear
alias czm "chezmoi" alias ll "ls -lahF --color=always"
alias zy "sudo zypper" alias e "$EDITOR"
alias cvim "chezmoi edit" alias se sudoedit
alias ec 'nvim --cmd ":lua vim.g.noplugins=1"'
alias cd.. "cd ../"
alias rmrf "rm -rf"
alias czm chezmoi
# overrides of defaults
alias mkdir "mkdir -p"
alias cp "cp -r"
alias scp "scp -r"
alias vimdiff 'nvim -d --cmd ":lua vim.g.noplugins=1"'
alias apt "sudo apt"
alias doc "sudo docker"
alias docker "sudo docker"
alias systemctl "sudo systemctl"
alias doco "sudo docker-compose"
# z is such a weird key to hit frequently, j is much better # z is such a weird key to hit frequently, j is much better
alias j "z" alias j z
# Cargoes and Rust-s # Cargoes and Rust-s
alias c "cargo" alias c cargo
alias cr "cargo run" alias cr "cargo run"
alias cb "cargo build" alias cb "cargo build"
alias ct "cargo test" alias ct "cargo test"
alias cwr "cargo watch -x run" alias cwr "cargo watch -x run"
alias ct "cargo test" alias ct "cargo test"
alias rp "rustup" alias rp rustup
# Rubies # Rubies
alias be "bundle exec" alias be "bundle exec"
# cd into a temp directory, very useful! # cd into a temp directory, very useful!
alias mkt "cd (mktemp -d)" alias mkt "cd (mktemp -d)"
# tmux aliases # tmux aliases
alias tx "tmux" alias tx tmux
alias txls "tmux list-sessions" alias txls "tmux list-sessions"
alias txa "tmux attach" alias txa "tmux attach"
# Git Aliases # Git Aliases
alias lg "lazygit" alias lg lazygit
alias g "git" alias g git
alias ga "g add"
alias gs "g status --short" alias gs "g status --short"
alias gl "g log --color --graph --abbrev-commit --oneline" alias gl "g log --color --graph --abbrev-commit --oneline"
# "git quick push" and "git quick commit". it makes sense in my head # "git quick push" and "git quick commit". it makes sense in my head

View file

@ -1,6 +1,48 @@
# shell
set -g default-command $SHELL
set -g default-shell $SHELL
# start with window 1 (for keybinds)
set -g base-index 1
# renumber windows after closing
set -g renumber-windows on
# start with pane 1
set -g pane-base-index 1
# vim style
setw -g mode-keys vi
set -g status-keys vi
bind : command-prompt
# panes
set -g pane-border-style "fg=color0"
set -g pane-active-border-style "fg=color0"
set -g window-active-style "bg=terminal"
set -g window-style "bg=color234"
# status line
set -g status-justify left
set -g status-style "bg=terminal,fg=color1"
set -g status-interval 2
# window status
set-option -g status-position bottom
setw -g window-status-format " #[bg=color1,fg=color0,noreverse] #W"
setw -g window-status-current-format " #[bg=color6,fg=color0,noreverse] #W"
# clock
set -g clock-mode-color color1
# mouse mode # mouse mode
set -g mouse on set -g mouse on
# rebind prefix to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# easy reloads # easy reloads
bind r source-file ~/.config/tmux/tmux.conf bind r source-file ~/.config/tmux/tmux.conf