├── README.md ├── .config └── alacritty │ └── alacritty.toml └── .zshrc /README.md: -------------------------------------------------------------------------------- 1 | # My dotfiles 2 | 3 | This directory contains the dotfiles for my system 4 | 5 | ## Requirements 6 | 7 | Ensure you have the following installed on your system 8 | 9 | ### Git 10 | 11 | ``` 12 | pacman -S git 13 | ``` 14 | 15 | ### Stow 16 | 17 | ``` 18 | pacman -S stow 19 | ``` 20 | 21 | ## Installation 22 | 23 | First, check out the dotfiles repo in your $HOME directory using git 24 | 25 | ``` 26 | $ git clone git@github.com/dreamsofautonomy/dotfiles.git 27 | $ cd dotfiles 28 | ``` 29 | 30 | then use GNU stow to create symlinks 31 | 32 | ``` 33 | $ stow . 34 | ``` 35 | -------------------------------------------------------------------------------- /.config/alacritty/alacritty.toml: -------------------------------------------------------------------------------- 1 | live_config_reload = true 2 | 3 | [bell] 4 | animation = "EaseOutExpo" 5 | duration = 0 6 | 7 | [colors] 8 | draw_bold_text_with_bright_colors = true 9 | 10 | [[colors.indexed_colors]] 11 | color = "0xF8BD96" 12 | index = 16 13 | 14 | [[colors.indexed_colors]] 15 | color = "0xF5E0DC" 16 | index = 17 17 | 18 | [colors.bright] 19 | black = "0x988BA2" 20 | blue = "0x96CDFB" 21 | cyan = "0x89DCEB" 22 | green = "0xABE9B3" 23 | magenta = "0xF5C2E7" 24 | red = "0xF28FAD" 25 | white = "0xD9E0EE" 26 | yellow = "0xFAE3B0" 27 | 28 | [colors.cursor] 29 | cursor = "0xF5E0DC" 30 | text = "0x1E1D2F" 31 | 32 | [colors.normal] 33 | black = "0x6E6C7E" 34 | blue = "0x96CDFB" 35 | cyan = "0x89DCEB" 36 | green = "0xABE9B3" 37 | magenta = "0xF5C2E7" 38 | red = "0xF28FAD" 39 | white = "0xD9E0EE" 40 | yellow = "0xFAE3B0" 41 | 42 | [colors.primary] 43 | background = "0x1E1D2F" 44 | foreground = "0xD9E0EE" 45 | 46 | [cursor] 47 | blink_interval = 500 48 | blink_timeout = 5 49 | unfocused_hollow = false 50 | 51 | [cursor.style] 52 | blinking = "Off" 53 | shape = "Block" 54 | 55 | [env] 56 | TERM = "xterm-256color" 57 | 58 | [font] 59 | size = 18 60 | 61 | [font.bold] 62 | family = "JetBrainsMono Nerd Font" 63 | style = "Bold" 64 | 65 | [font.glyph_offset] 66 | x = 0 67 | y = 0 68 | 69 | [font.italic] 70 | family = "JetBrainsMono Nerd Font" 71 | 72 | [font.normal] 73 | family = "JetBrainsMono Nerd Font" 74 | style = "Regular" 75 | 76 | [font.offset] 77 | x = 0 78 | y = 0 79 | 80 | [mouse] 81 | hide_when_typing = true 82 | 83 | [[mouse.bindings]] 84 | action = "PasteSelection" 85 | mouse = "Middle" 86 | 87 | [selection] 88 | semantic_escape_chars = ",│`|:\"' ()[]{}<>" 89 | 90 | [shell] 91 | program = "/bin/zsh" 92 | 93 | [window] 94 | decorations = "full" 95 | dynamic_title = true 96 | startup_mode = "Maximized" 97 | 98 | [window.dimensions] 99 | columns = 160 100 | lines = 80 101 | 102 | [window.padding] 103 | x = 4 104 | y = 4 105 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # Set the GPG_TTY to be the same as the TTY, either via the env var 2 | # or via the tty command. 3 | if [ -n "$TTY" ]; then 4 | export GPG_TTY=$(tty) 5 | else 6 | export GPG_TTY="$TTY" 7 | fi 8 | 9 | 10 | # Nix 11 | if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then 12 | . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' 13 | fi 14 | # End Nix 15 | 16 | export PATH="/usr/local/bin:/usr/bin:$PATH" 17 | 18 | if [ Darwin = `uname` ]; then 19 | source $HOME/.profile-macos 20 | fi 21 | 22 | # SSH_AUTH_SOCK set to GPG to enable using gpgagent as the ssh agent. 23 | export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) 24 | gpgconf --launch gpg-agent 25 | 26 | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. 27 | # Initialization code that may require console input (password prompts, [y/n] 28 | # confirmations, etc.) must go above this block; everything else may go below. 29 | if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then 30 | source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 31 | fi 32 | 33 | 34 | autoload -Uz compinit && compinit 35 | 36 | ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" 37 | # Download Zinit, if it's not there yet 38 | if [ ! -d "$ZINIT_HOME" ]; then 39 | mkdir -p "$(dirname $ZINIT_HOME)" 40 | git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" 41 | fi 42 | 43 | source "${ZINIT_HOME}/zinit.zsh" 44 | 45 | zinit light ohmyzsh/ohmyzsh 46 | zinit ice depth=1; zinit light romkatv/powerlevel10k 47 | zinit snippet OMZP::git 48 | zinit snippet OMZP::sudo 49 | zinit snippet OMZP::aws 50 | zinit snippet OMZP::kubectl 51 | zinit snippet OMZP::kubectx 52 | zinit snippet OMZP::rust 53 | zinit snippet OMZP::command-not-found 54 | 55 | zinit light zsh-users/zsh-completions 56 | zinit light zsh-users/zsh-autosuggestions 57 | zinit light zsh-users/zsh-syntax-highlighting 58 | 59 | export LANG=en_US.UTF-8 60 | export LC_ALL=en_US.UTF-8 61 | 62 | source $HOME/.profile 63 | source $HOME/.config/tmuxinator/tmuxinator.zsh 64 | 65 | if [ Linux = `uname` ]; then 66 | source $HOME/.profile-linux 67 | fi 68 | 69 | setopt auto_cd 70 | 71 | #export PATH="/usr/local/opt/curl/bin:$PATH" 72 | export PATH="$PATH:$HOME/Library/flutter/bin" 73 | 74 | alias sudo='sudo ' 75 | export LD_LIBRARY_PATH=/usr/local/lib 76 | 77 | # Completions 78 | 79 | source <(doctl completion zsh) 80 | 81 | source <(kubectl completion zsh) 82 | 83 | # P10k customizations 84 | # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. 85 | [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh 86 | 87 | # Fix for password store 88 | export PASSWORD_STORE_GPG_OPTS='--no-throw-keyids' 89 | 90 | export NVM_DIR="$HOME/.nvm" # You can change this if you want. 91 | export NVM_SOURCE="/usr/share/nvm" # The AUR package installs it to here. 92 | [ -s "$NVM_SOURCE/nvm.sh" ] && . "$NVM_SOURCE/nvm.sh" # Load N 93 | 94 | bindkey "^P" up-line-or-beginning-search 95 | bindkey "^N" down-line-or-beginning-search 96 | 97 | [ -s "$HOME/.svm/svm.sh" ] && source "$HOME/.svm/svm.sh" 98 | 99 | # Capslock command 100 | alias capslock="sudo killall -USR1 caps2esc" 101 | 102 | if [ "$XDG_SESSION_TYPE" = "wayland" ]; then 103 | export MOZ_ENABLE_WAYLAND=1 104 | fi 105 | 106 | zle_highlight=('paste:none') 107 | --------------------------------------------------------------------------------