initial commit

This commit is contained in:
Yannik Buerkle 2024-05-16 21:36:45 +02:00
commit 12127ef1df
3 changed files with 183 additions and 0 deletions

View file

@ -0,0 +1,104 @@
live_config_reload = true
[bell]
animation = "EaseOutExpo"
duration = 0
[colors]
draw_bold_text_with_bright_colors = true
[[colors.indexed_colors]]
color = "0xF8BD96"
index = 16
[[colors.indexed_colors]]
color = "0xF5E0DC"
index = 17
[colors.bright]
black = "0x988BA2"
blue = "0x96CDFB"
cyan = "0x89DCEB"
green = "0xABE9B3"
magenta = "0xF5C2E7"
red = "0xF28FAD"
white = "0xD9E0EE"
yellow = "0xFAE3B0"
[colors.cursor]
cursor = "0xF5E0DC"
text = "0x1E1D2F"
[colors.normal]
black = "0x6E6C7E"
blue = "0x96CDFB"
cyan = "0x89DCEB"
green = "0xABE9B3"
magenta = "0xF5C2E7"
red = "0xF28FAD"
white = "0xD9E0EE"
yellow = "0xFAE3B0"
[colors.primary]
background = "0x1E1D2F"
foreground = "0xD9E0EE"
[cursor]
blink_interval = 500
blink_timeout = 5
unfocused_hollow = false
[cursor.style]
blinking = "Off"
shape = "Block"
[env]
TERM = "xterm-256color"
[font]
size = 12
[font.bold]
family = "JetBrainsMono Nerd Font"
style = "Bold"
[font.glyph_offset]
x = 0
y = 0
[font.italic]
family = "JetBrainsMono Nerd Font"
[font.normal]
family = "JetBrainsMono Nerd Font"
style = "Regular"
[font.offset]
x = 0
y = 0
[mouse]
hide_when_typing = true
[[mouse.bindings]]
action = "PasteSelection"
mouse = "Middle"
[selection]
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
[shell]
program = "/bin/zsh"
[window]
decorations = "full"
dynamic_title = true
startup_mode = "Maximized"
[window.dimensions]
columns = 160
lines = 80
[window.padding]
x = 4
y = 4

9
.gitconfig Normal file
View file

@ -0,0 +1,9 @@
[user]
email = mail@yannik-buerkle.de
name = Yannik Buerkle
[pull]
rebase = false
[core]
autocrlf = input
[init]
defaultBranch = main

70
.zshrc Normal file
View file

@ -0,0 +1,70 @@
# 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
# Set the directory we want to install Zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# Download Zinit, if it's not installed
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname $ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
# Source Zinit
source "$ZINIT_HOME/zinit.zsh"
# Add in Powerlevel10k
zinit ice depth=1; zinit light romkatv/powerlevel10k
# Add in plugins
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
autoload -Uz compinit; compinit
zinit cdreplay -q
# Keybindings
bindkey -e
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
# History
HISTSIZE=5000
HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
# Completion styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
# Aliases
alias ls='ls --color'
alias vim='nvim'
alias c='clear'
# Shell integrations
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh