aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2026-01-24 09:01:19 +0100
committerFilip Wandzio <contact@philw.dev>2026-01-24 09:01:19 +0100
commita44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 (patch)
treeb70fc06203133bebf4a51820f48bf8effa2ee9c2 /shell
parentb34e284c6225e72fe7d612f8913d0a35b9d7ea17 (diff)
downloaddotfiles-a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475.tar.gz
dotfiles-a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475.zip
Update thesisHEADmaster
Diffstat (limited to 'shell')
-rw-r--r--shell/bash/.bash_profile7
-rw-r--r--shell/bash/.bashrc130
-rw-r--r--shell/dash/.profile27
-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
8 files changed, 80 insertions, 203 deletions
diff --git a/shell/bash/.bash_profile b/shell/bash/.bash_profile
index f702739..3f56aa0 100644
--- a/shell/bash/.bash_profile
+++ b/shell/bash/.bash_profile
@@ -1,8 +1 @@
1#
2# ~/.bash_profile
3#
4
5[[ -f ~/.bashrc ]] && . ~/.bashrc [[ -f ~/.bashrc ]] && . ~/.bashrc
6. "$HOME/.cargo/env"
7
8echo 75 > /sys/class/backlight/intel_backlight/brightness
diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc
index 61c9b03..75cc861 100644
--- a/shell/bash/.bashrc
+++ b/shell/bash/.bashrc
@@ -1,92 +1,70 @@
1parse_git_branch() { 1[[ $- != *i* ]] && return
2 local branch=""
3 branch=$(git branch 2> /dev/null | sed -n '/^[^*]/d;s/* \(.*\)/\1/p')
4 local git_status=$(git status --porcelain 2>/dev/null)
5
6 if [ -n "$branch" ]; then
7 branch="(${branch}) "
8 fi
9 2
10 echo "$branch" 3parse_git_branch() {
4 local branch
5 branch=$(git symbolic-ref --short HEAD 2>/dev/null) || return
6 printf '(%s) ' "$branch"
11} 7}
12 8
13
14update_prompt() { 9update_prompt() {
15 PS1="\[\e[31m\][\[\e[33m\]\u\[\e[32m\]@\[\e[34m\]\h \[\e[35m\]\w\[\e[31m\]]\[\e[35m\] \[\e[33m\]\$(parse_git_branch)\[\e[34m\]# \[\e[0m\]" 10 PS1="\u@\h \W \$(parse_git_branch)# "
16} 11}
17 12
18PROMPT_COMMAND="update_prompt" 13PROMPT_COMMAND="update_prompt${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
19 14
20if [ -z "$XDG_RUNTIME_DIR" ]; then 15export R_HOME_USER="$XDG_CONFIG_HOME/R"
21 XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" 16export R_PROFILE_USER="$XDG_CONFIG_HOME/R/profile"
22 mkdir -pm 0700 "$XDG_RUNTIME_DIR" 17export R_HISTFILE="$XDG_CONFIG_HOME/R/history"
23 export XDG_RUNTIME_DIR 18export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
24fi 19export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
25 20export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
26export XDG_DATA_HOME="$HOME"/.local/share 21export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
27export XDG_CONFIG_HOME="$HOME"/.config 22export SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
28export XDG_STATE_HOME="$HOME"/.local/state 23export SCREENDIR="$XDG_RUNTIME_DIR/screen"
29export XDG_CACHE_HOME="$HOME"/.cache 24export PLATFORMIO_CORE_DIR="$XDG_DATA_HOME/platformio"
30#export PATH=$PATH:$(xdg-user-dir USER)/.local/bin 25export BUN_INSTALL="$XDG_DATA_HOME/bun"
26export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
27export W3M_DIR="$XDG_STATE_HOME/w3m"
28export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
31export XDG_CURRENT_DESKTOP=dwm 29export XDG_CURRENT_DESKTOP=dwm
32export XDG_SESSION_DESKTOP=dwm 30export XDG_SESSION_DESKTOP=dwm
33export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv 31export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
34export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc 32export CARGO_HOME="$XDG_DATA_HOME/cargo"
35export LESSHISTFILE="$XDG_CACHE_HOME"/less/history 33export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
34export GOPATH="$XDG_DATA_HOME/go"
35export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
36export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
37export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
38export HISTFILE="$XDG_STATE_HOME/bash/history"
36export EDITOR=/usr/bin/nvim 39export EDITOR=/usr/bin/nvim
37export BUILDDIR=/tmp/makepkg 40export BUILDDIR=/tmp/makepkg
38export RAVEDUDE_PORT=/dev/ttyACM0
39export BUN_INSTALL="$HOME/.bun"
40export PATH="$BUN_INSTALL/bin:$PATH"
41export PATH="$HOME/.cargo/bin:$PATH"
42export ANDROID_HOME=$HOME/Android/sdk
43export PATH=$PATH:$ANDROID_HOME/emulator
44export PATH=$PATH:$ANDROID_HOME/platform-tools
45export AWT_TOOLKIT=MToolkit 41export AWT_TOOLKIT=MToolkit
46export _JAVA_AWT_WM_NONREPARENTING=1 42export _JAVA_AWT_WM_NONREPARENTING=1
47export JAVA_HOME=/usr/lib/jvm/openjdk17
48export RUST_LOG=debug 43export RUST_LOG=debug
44export GPG_TTY=$(tty)
49 45
50alias get_idf='. $HOME/esp/esp-idf/export.sh' 46export PATH="$HOME/.local/bin:$CARGO_HOME/bin:$BUN_INSTALL/bin:$PATH"
51 47
52alias l='ls -la --color=auto' 48alias l='ls -hN -la --group-directories-first'
53alias la='ls -la --color=auto' 49alias mbsync='mbsync --config "$XDG_CONFIG_HOME"/isync/mbsyncrc'
54alias ls='ls --color=auto'
55alias ..='cd ..' 50alias ..='cd ..'
56 51alias v=nvim
57alias mvn="~/Downloads/apache-maven-3.9.9/bin/mvn" 52alias c=clear
58alias v="nvim" 53alias j=joshuto
59alias c="clear" 54alias zl=zellij
60alias j="joshuto" 55alias h=htop
61alias zl="zellij" 56alias sxiv=nsxiv
62alias h="htop" 57alias poweroff='doas /usr/bin/poweroff'
63alias n="neofetch" 58alias reboot='doas /usr/bin/reboot'
64alias poweroff="doas /usr/bin/poweroff" 59alias update-grub='doas grub-mkconfig -o /boot/grub/grub.cfg'
65alias reboot="doas /usr/bin/reboot" 60alias no-screen-dim='xset s off && xset -dpms'
66alias update-grub="doas grub-mkconfig -o /boot/grub/grub.cfg" 61alias gts='git status'
67 62alias gta='git add .'
68alias gts="git status" 63alias gtc='git commit -m'
69alias gta="git add ." 64alias gpo='git push origin'
70alias gtc="git commit -m" 65alias pull='git pull origin'
71alias gpo="git push origin" 66alias glg='git log'
72alias pull="git pull origin" 67alias rsync='rsync -avz --progress'
73alias glg="git log" 68alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
74 69
75[ -s "/home/fw/.bun/_bun" ] && source "/home/fw/.bun/_bun" 70command -v cargo >/dev/null 2>&1 && [ -f "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
76
77if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
78 exec startx &> /dev/null
79# exec dbus-run-session run_something &> /dev/null
80fi
81
82# If not running interactively, don't do anything
83[[ $- != *i* ]] && return
84
85
86export GPG_TTY=$(tty)
87export PATH=$PATH:$HOME/.local/bin
88. "$HOME/.cargo/env"
89
90#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
91export SDKMAN_DIR="$HOME/.sdkman"
92[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
diff --git a/shell/dash/.profile b/shell/dash/.profile
index c2f3182..10cb98f 100644
--- a/shell/dash/.profile
+++ b/shell/dash/.profile
@@ -1 +1,26 @@
1. "$HOME/.cargo/env" 1export XDG_DATA_HOME="$HOME/.local/share"
2export XDG_CONFIG_HOME="$HOME/.config"
3export XDG_STATE_HOME="$HOME/.local/state"
4export XDG_CACHE_HOME="$HOME/.cache"
5
6if [ -z "$XDG_RUNTIME_DIR" ]; then
7 export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
8 mkdir -pm 0700 "$XDG_RUNTIME_DIR"
9fi
10
11export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
12touch "$XAUTHORITY"
13chmod 600 "$XAUTHORITY"
14
15if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
16 exec startx "$XDG_CONFIG_HOME/x/xinitrc"
17fi
18
19case "$-" in
20 *i*)
21 if [ -z "$BASH_VERSION" ]; then
22 exec bash --login
23 fi
24 ;;
25esac
26
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"