From 3632aa92028a67bdff39340f1f58b27a5ec12c6e Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Thu, 5 Feb 2026 13:17:14 +0100 Subject: Update shell files --- shell/.profile | 27 +++++++++++++++++++++++++++ shell/bash/.bashrc | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 shell/.profile (limited to 'shell') diff --git a/shell/.profile b/shell/.profile new file mode 100644 index 0000000..0b0755f --- /dev/null +++ b/shell/.profile @@ -0,0 +1,27 @@ + +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_STATE_HOME="$HOME/.local/state" +export XDG_CACHE_HOME="$HOME/.cache" + +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" +fi + +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +touch "$XAUTHORITY" +chmod 600 "$XAUTHORITY" + +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec startx "$XDG_CONFIG_HOME/x/xinitrc" +fi + +case "$-" in + *i*) + if [ -z "$BASH_VERSION" ]; then + exec bash --login + fi + ;; +esac + diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc index 75cc861..68714b7 100644 --- a/shell/bash/.bashrc +++ b/shell/bash/.bashrc @@ -46,9 +46,12 @@ export GPG_TTY=$(tty) export PATH="$HOME/.local/bin:$CARGO_HOME/bin:$BUN_INSTALL/bin:$PATH" alias l='ls -hN -la --group-directories-first' +alias sudo=doas alias mbsync='mbsync --config "$XDG_CONFIG_HOME"/isync/mbsyncrc' alias ..='cd ..' alias v=nvim +alias vim=nvim +alias vi=nvim alias c=clear alias j=joshuto alias zl=zellij -- cgit v1.2.3