Add zsh and kitty configs, update tmux

This commit is contained in:
Corrado Primier 2023-11-19 02:42:44 +01:00
parent e52442ea42
commit 3950825ed1
5 changed files with 2642 additions and 2 deletions

54
dot_shrc_common Normal file
View File

@ -0,0 +1,54 @@
#
# Common shell configurations
#
export EDITOR="vim"
export GREP_COLOR="mt=1;33"
export GOPATH="$HOME/projects/go"
export HISTCONTROL="ignoredups"
export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
export MOZ_USE_XINPUT2=1
export PATH="$PATH:$HOME/.cargo/bin:$HOME/bin"
export TEXMFDIST="/usr/share/texmf-dist"
export WORKON_HOME="~/.virtualenvs"
# less colors
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
alias diff="diff --color=auto"
alias grep="grep --color=auto"
alias egrep="grep -E --color=auto"
alias gst="git status"
alias ls="ls --color=auto"
alias l="ls"
alias la="ls -a"
alias ll="ls -l"
alias lla="ls -la"
alias mkdir="mkdir -p -v"
alias restricted-vim="rvim -Zi NONE"
alias rot13="tr a-zA-Z n-za-mN-ZA-M"
alias tlmgr="$TEXMFDIST/scripts/texlive/tlmgr.pl --usermode"
alias tmux="TERM=screen-256color-bce tmux"
alias ya="yay --config /etc/pacman.conf.nokernel"
if [[ $(command -v dircolors) ]] ; then
eval $(dircolors -b)
fi
function urldecode() {
: "${*//+/ }"
echo -e "${_//%/\\x}"
}
# Virtualenv wrapper
[[ -s /usr/bin/virtualenvwrapper.sh ]] && source /usr/bin/virtualenvwrapper.sh
# AWS
[[ -f $HOME/.aws ]] && source "$HOME/.aws"

View File

@ -21,6 +21,7 @@ set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #h] #W' set-option -g set-titles-string '[#S:#I #h] #W'
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -g terminal-features "256"
set -g terminal-overrides 'xterm:colors=256' set -g terminal-overrides 'xterm:colors=256'
set -g status-keys vi set -g status-keys vi
set -g history-limit 100000 set -g history-limit 100000
@ -94,8 +95,12 @@ setw -g xterm-keys on
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
# Visual theme # Visual theme
set -g @plugin 'jimeh/tmux-themepack' #set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/cyan' #set -g @themepack 'powerline/block/cyan'
# Base16 integration
set -g @plugin 'tinted-theming/base16-tmux'
set -g @colors-base16 'monokai'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm' run -b '~/.tmux/plugins/tpm/tpm'

94
dot_zshrc Normal file
View File

@ -0,0 +1,94 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' max-errors 1
zstyle :compinstall filename '/home/bardo/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
zstyle ':completion:*' menu select # Select autocompletion with arrows
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} # Colored completions
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt hist_ignore_all_dups
setopt autocd notify
unsetopt beep extendedglob
bindkey -e
# End of lines configured by zsh-newuser-install
# Copy the current screen to the scrollback buffer, then clear the screen
ctrl_l() {
builtin print -rn -- $'\r\e[0J\e[H\e[22J' >"$TTY"
builtin zle .reset-prompt
builtin zle -R
}
zle -N ctrl_l
bindkey "^l" ctrl_l
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Common shell initialization
if [[ -f ~/.shrc_common ]] ; then
source ~/.shrc_common
fi
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\eOc" emacs-forward-word
bindkey "\e[5D" backward-word
bindkey "\eOd" emacs-backward-word
bindkey "\ee[C" forward-word
bindkey "\ee[D" backward-word
bindkey "^H" backward-delete-word
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# RXVT-specific
bindkey "\e[8~" end-of-line
bindkey "\e[7~" beginning-of-line
# Non-RH/Debian xterm, can't hurt for RH/DEbian xterm
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
# FreeBSD console
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# Completion in the middle of a line
bindkey '^i' expand-or-complete-prefix
# Directory stack
setopt AUTO_PUSHD # Push the current directory visited on the stack.
setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack.
setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd.
alias d='dirs -v'
for index ({1..9}) alias "$index"="cd +${index}"; unset index
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/plugins/bd/bd.zsh
# FZF
if command -v fzf >/dev/null ; then
source /usr/share/fzf/completion.zsh
source /usr/share/fzf/key-bindings.zsh
fi

View File

@ -0,0 +1,21 @@
background #121212
foreground #bbbbbb
cursor #bbbbbb
selection_background #b4d5ff
color0 #121212
color8 #545454
color1 #fa2573
color9 #f5669c
color2 #97e123
color10 #b0e05e
color3 #dfd460
color11 #fef26c
color4 #0f7fcf
color12 #00afff
color5 #8700ff
color13 #af87ff
color6 #42a7cf
color14 #50cdfe
color7 #bbbbbb
color15 #ffffff
selection_foreground #121212

File diff suppressed because it is too large Load Diff