From ce792dbb2f26ea3ccdf82d4c236ab0a2f5c77ad6 Mon Sep 17 00:00:00 2001 From: Anton Livaja Date: Sat, 1 Mar 2025 13:03:23 -0500 Subject: [PATCH] update tmux and zsh configs --- tmux/.tmux.conf | 4 ++++ zsh/.zshrc | 21 ++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 809992f..7fde1f2 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -5,3 +5,7 @@ run-shell "powerline-daemon -q" source "/usr/share/powerline/bindings/tmux/powerline.conf" # vim: ft=tmux + +# Fix coloring +set-option -g default-terminal "xterm-256color" +set-option -ga terminal-overrides ",xterm-256color:Tc" \ No newline at end of file diff --git a/zsh/.zshrc b/zsh/.zshrc index 62bb39c..f611eed 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -5,7 +5,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -export DEFAULT_USER="lrvick" +export DEFAULT_USER="anton" export DISABLE_AUTO_UPDATE="true" export COMPLETION_WAITING_DOTS="true" export HISTFILE=~/.zsh_history @@ -20,3 +20,22 @@ source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +GPG_TTY=$(tty) +export GPG_TTY + +# Aliases +alias gib='git branch' +alias gis='git status' +alias gpoh='git push origin HEAD' + +# Bindkeys +bindkey '^R' history-incremental-search-backward # ctrl + shift + r -> Reverse search +bindkey '^A' beginning-of-line # ctrl + a -> Move to start of line +bindkey '^E' end-of-line # ctrl + e -> Move to end of line +bindkey '^[[1;5D' backward-word # ctrl + left arrow -> Move back one word +bindkey '^[[1;5C' forward-word # Ctrl + right arrow -> Move forward one word + +# Color different file types +export LS_COLORS=$(dircolors -b) +alias ls='ls --color=auto'