Initial commit

This commit is contained in:
2024-10-14 12:46:41 +02:00
commit a608dc0f69
4 changed files with 247 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
live_config_reload = true
[window]
opacity = 1
decorations = "full"
dynamic_title = true
startup_mode = "Maximized"
[window.dimensions]
columns = 160
lines = 40
[window.padding]
x = 4
y = 4
[window.class]
general = "Alacritty"
instance = "Alacritty"
[scrolling]
history = 10000
multiplier = 3
[font]
size = 11
[font.normal]
family = "JetBrainsMono Nerd Font"
style = "Medium"
[font.bold]
family = "JetBrainsMono Nerd Font"
style = "Bold"
[font.italic]
family = "JetBrainsMono Nerd Font"
style = "MediumItalic"
[font.bold_italic]
family = "JetBrainsMono Nerd Font"
style = "BoldItalic"
[font.glyph_offset]
x = 0
y = 0
[colors]
draw_bold_text_with_bright_colors = true
#[colors.primary]
#foreground = "#a9b1d6"
#background = "#11121D"
[[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 = 750
[cursor.style]
blinking = "Always"
[mouse]
hide_when_typing = true
[shell]
program = "/bin/zsh"
[env]
TERM = "xterm-256color"

36
.config/tmux/tmux.conf Normal file
View File

@@ -0,0 +1,36 @@
# Set true color
set-option -sa terminal-overrides ",xterm*:Tc"
# Enable Mouse
set -g mouse on
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Set prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'tmux-pligins/tmux-yank'
# set vi-mode
set-window-option -g mode-keys vi
# keybinings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectagle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Open panes in current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane-current_path}"
run '~/.tmux/plugins/tpm/tpm'

81
.zshrc Normal file
View File

@@ -0,0 +1,81 @@
# Set the directory we want to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# Download Zinit, if it's not there yet
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname $ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
# Source/Load zinit
source "${ZINIT_HOME}/zinit.zsh"
# Add in zsh 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
# Add in snippets
zinit snippet OMZL::git.zsh
zinit snippet OMZP::git
zinit snippet OMZP::sudo
zinit snippet OMZP::archlinux
zinit snippet OMZP::aws
zinit snippet OMZP::kubectl
zinit snippet OMZP::kubectx
zinit snippet OMZP::command-not-found
# Load completions
autoload -Uz compinit && compinit
zinit cdreplay -q
# Prompt
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)"
# Keybindings
bindkey -e
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Ohne Tmux
#bindkey "^[[H" beginning-of-line
#bindkey "^[[F" end-of-line
#bindkey "^[[2~" delete-char
# Mit Tmux
bindkey "^[[1" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[3~" delete-char
# History
HISTSIZE=10000
HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_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 v='nvim'
alias c='clear'
# Shell integrations
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
# Automatically start Tmux
if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ]; then
exec tmux new-session -A -s ${USER} >/dev/null 2>&1
fi

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# My dotfiles
This directory contains the dotfiles for my system
## Requirements
Ensure you have the following installed on your system
```
pacman -S git stow --needed
```
## Installation
First, check out the dotfiles repo in your $HOME directory using git
```
git clone ...
cd dotfiles
```
then use GNU stow to create symlinks
```
$ stow .
```