diff options
| author | Filip Wandzio <contact@philw.dev> | 2026-01-24 09:01:19 +0100 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2026-01-24 09:01:19 +0100 |
| commit | a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 (patch) | |
| tree | b70fc06203133bebf4a51820f48bf8effa2ee9c2 /shell/zsh/.zsh | |
| parent | b34e284c6225e72fe7d612f8913d0a35b9d7ea17 (diff) | |
| download | dotfiles-a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475.tar.gz dotfiles-a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475.zip | |
Diffstat (limited to '')
| m--------- | shell/zsh/.zsh/zsh-autosuggestions | 0 | ||||
| m--------- | shell/zsh/.zsh/zsh-syntax-highlighting | 0 | ||||
| -rw-r--r-- | shell/zsh/.zshenv | 1 | ||||
| -rw-r--r-- | shell/zsh/.zshrc | 115 |
4 files changed, 0 insertions, 116 deletions
diff --git a/shell/zsh/.zsh/zsh-autosuggestions b/shell/zsh/.zsh/zsh-autosuggestions deleted file mode 160000 | |||
| Subproject c3d4e576c9c86eac62884bd47c01f6faed043fc | |||
diff --git a/shell/zsh/.zsh/zsh-syntax-highlighting b/shell/zsh/.zsh/zsh-syntax-highlighting deleted file mode 160000 | |||
| Subproject e0165eaa730dd0fa321a6a6de74f092fe87630b | |||
diff --git a/shell/zsh/.zshenv b/shell/zsh/.zshenv deleted file mode 100644 index c2f3182..0000000 --- a/shell/zsh/.zshenv +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | . "$HOME/.cargo/env" | ||
diff --git a/shell/zsh/.zshrc b/shell/zsh/.zshrc deleted file mode 100644 index 0f6c767..0000000 --- a/shell/zsh/.zshrc +++ /dev/null | |||
| @@ -1,115 +0,0 @@ | |||
| 1 | stty susp "^P" | ||
| 2 | parse_git_branch() { | ||
| 3 | local branch="" | ||
| 4 | branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | ||
| 5 | local git_status=$(git status --porcelain 2>/dev/null) | ||
| 6 | local color=red | ||
| 7 | if [[ -n "$branch" ]]; then | ||
| 8 | branch=" (${branch})" | ||
| 9 | fi | ||
| 10 | echo "$branch " | ||
| 11 | } | ||
| 12 | update_prompt() { | ||
| 13 | PS1="%F{red}[%F{yellow}%n%F{green}@%F{blue}%m %F{magenta}%c%f%F{red}]%F{magenta}%F{yellow}$(parse_git_branch)%F{blue}# %F{reset}" | ||
| 14 | } | ||
| 15 | precmd_functions+=(update_prompt) | ||
| 16 | update_prompt | ||
| 17 | |||
| 18 | HISTFILE="$XDG_CACHE_HOME"/zsh-histfile | ||
| 19 | GNUPGHOME="~/.gnupg/" | ||
| 20 | HISTSIZE=2500 | ||
| 21 | SAVEHIST=2000 | ||
| 22 | setopt INC_APPEND_HISTORY | ||
| 23 | setopt HIST_EXPIRE_DUPS_FIRST | ||
| 24 | setopt HIST_FIND_NO_DUPS | ||
| 25 | unsetopt beep | ||
| 26 | bindkey -e | ||
| 27 | zstyle :compinstall filename "/home/$USER/.zshrc" | ||
| 28 | autoload -Uz compinit | ||
| 29 | compinit | ||
| 30 | setopt autocd | ||
| 31 | eval "$(zoxide init zsh)" | ||
| 32 | |||
| 33 | export GPG_TTY=$(tty) | ||
| 34 | export XDG_DATA_HOME="$HOME"/.local/share | ||
| 35 | export XDG_CONFIG_HOME="$HOME"/.config | ||
| 36 | export XDG_STATE_HOME="$HOME"/.local/state | ||
| 37 | export XDG_CACHE_HOME="$HOME"/.cache | ||
| 38 | #export PATH=$PATH:$(xdg-user-dir USER)/.local/bin | ||
| 39 | export XDG_CURRENT_DESKTOP=dwm | ||
| 40 | export XDG_SESSION_DESKTOP=dwm | ||
| 41 | export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv | ||
| 42 | export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc | ||
| 43 | export LESSHISTFILE="$XDG_CACHE_HOME"/less/history | ||
| 44 | export EDITOR=nvim | ||
| 45 | export BUILDDIR=/tmp/makepkg | ||
| 46 | export RAVEDUDE_PORT=/dev/ttyACM0 | ||
| 47 | alias get_idf='. $HOME/Repositories/c/esp/esp-idf/export.sh' | ||
| 48 | export BUN_INSTALL="$HOME/.bun" | ||
| 49 | export PATH="$BUN_INSTALL/bin:$PATH" | ||
| 50 | export PATH="$HOME/.cargo/bin:$PATH" | ||
| 51 | export ANDROID_HOME=$HOME/Android/sdk | ||
| 52 | export PATH=$PATH:$ANDROID_HOME/emulator | ||
| 53 | export PATH=$PATH:$ANDROID_HOME/platform-tools | ||
| 54 | export AWT_TOOLKIT=MToolkit | ||
| 55 | export JAVA_HOME=/usr/lib/jvm/java-21-openjdk | ||
| 56 | export GEM="/home/fw/.local/share/gem/ruby/3.0.0/bin" | ||
| 57 | # . "${HOME}/.cache/wal/colors.sh" | ||
| 58 | |||
| 59 | alias dmenu='dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15"' | ||
| 60 | |||
| 61 | alias acl='arduino-cli' | ||
| 62 | alias acla='arduino-cli compile --fqbn arduino:avr:uno' | ||
| 63 | alias acla='arduino-cli compile' | ||
| 64 | alias aclbl='arduino-cli board list' | ||
| 65 | |||
| 66 | alias ls='eza -l --icons --color=always' | ||
| 67 | alias l='eza -l --icons --color=always' | ||
| 68 | alias ls='eza -l --icons --color=always' | ||
| 69 | alias la='eza -la --icons --color=always' | ||
| 70 | alias ll='eza -l --color=always --group-directories-first' | ||
| 71 | alias lt='eza -T --color=always --group-directories-first' | ||
| 72 | alias v="nvim" | ||
| 73 | alias c="clear" | ||
| 74 | alias e="exit" | ||
| 75 | alias j="doas joshuto" | ||
| 76 | alias g="grep" | ||
| 77 | alias g="rg" | ||
| 78 | alias zl="zellij" | ||
| 79 | alias h="htop" | ||
| 80 | alias n="neofetch --off" | ||
| 81 | alias poweroff="doas /usr/bin/poweroff" | ||
| 82 | alias reboot="doas /usr/bin/reboot" | ||
| 83 | |||
| 84 | alias latexmk="latex-mk" | ||
| 85 | |||
| 86 | alias orphans='doas pacman -Rcns $(pacman -Qqdt)' | ||
| 87 | |||
| 88 | alias pf="prettier --write ." | ||
| 89 | |||
| 90 | |||
| 91 | alias gts="git status" | ||
| 92 | alias gta="git add ." | ||
| 93 | alias gtc="git commit -m" | ||
| 94 | alias gpo="git push origin" | ||
| 95 | alias pull="git pull origin" | ||
| 96 | alias glg="git log" | ||
| 97 | |||
| 98 | [ -s "/home/fw/.bun/_bun" ] && source "/home/fw/.bun/_bun" | ||
| 99 | |||
| 100 | if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then | ||
| 101 | exec startx &> /dev/null | ||
| 102 | # exec dbus-run-session run_something &> /dev/null | ||
| 103 | fi | ||
| 104 | |||
| 105 | case ":$PATH:" in | ||
| 106 | *":$GEM:"*) ;; | ||
| 107 | *) export PATH="$GEM:$PATH" ;; | ||
| 108 | esac | ||
| 109 | export PATH=$PATH:$HOME/.platformio/penv/bin | ||
| 110 | |||
| 111 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | ||
| 112 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | ||
| 113 | |||
| 114 | # Created by `pipx` on 2024-06-26 00:09:05 | ||
| 115 | export PATH="$PATH:/home/fw/.local/bin" | ||
