1
0
Fork 0

update tmux and zsh configs

This commit is contained in:
Anton Livaja 2025-03-01 13:03:23 -05:00
parent e07435336b
commit ce792dbb2f
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
2 changed files with 24 additions and 1 deletions

View File

@ -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"

View File

@ -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'