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