aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2026-02-05 13:17:14 +0100
committerFilip Wandzio <contact@philw.dev>2026-02-05 13:17:14 +0100
commit3632aa92028a67bdff39340f1f58b27a5ec12c6e (patch)
treef61bd75f69d8173d41467cd2bed10497f31b9468
parenta44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 (diff)
downloaddotfiles-3632aa92028a67bdff39340f1f58b27a5ec12c6e.tar.gz
dotfiles-3632aa92028a67bdff39340f1f58b27a5ec12c6e.zip
Update shell filesHEADmaster
Diffstat (limited to '')
-rw-r--r--shell/.profile27
-rw-r--r--shell/bash/.bashrc3
2 files changed, 30 insertions, 0 deletions
diff --git a/shell/.profile b/shell/.profile
new file mode 100644
index 0000000..0b0755f
--- /dev/null
+++ b/shell/.profile
@@ -0,0 +1,27 @@
1
2export XDG_DATA_HOME="$HOME/.local/share"
3export XDG_CONFIG_HOME="$HOME/.config"
4export XDG_STATE_HOME="$HOME/.local/state"
5export XDG_CACHE_HOME="$HOME/.cache"
6
7if [ -z "$XDG_RUNTIME_DIR" ]; then
8 export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
9 mkdir -pm 0700 "$XDG_RUNTIME_DIR"
10fi
11
12export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
13touch "$XAUTHORITY"
14chmod 600 "$XAUTHORITY"
15
16if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
17 exec startx "$XDG_CONFIG_HOME/x/xinitrc"
18fi
19
20case "$-" in
21 *i*)
22 if [ -z "$BASH_VERSION" ]; then
23 exec bash --login
24 fi
25 ;;
26esac
27
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)
46export PATH="$HOME/.local/bin:$CARGO_HOME/bin:$BUN_INSTALL/bin:$PATH" 46export PATH="$HOME/.local/bin:$CARGO_HOME/bin:$BUN_INSTALL/bin:$PATH"
47 47
48alias l='ls -hN -la --group-directories-first' 48alias l='ls -hN -la --group-directories-first'
49alias sudo=doas
49alias mbsync='mbsync --config "$XDG_CONFIG_HOME"/isync/mbsyncrc' 50alias mbsync='mbsync --config "$XDG_CONFIG_HOME"/isync/mbsyncrc'
50alias ..='cd ..' 51alias ..='cd ..'
51alias v=nvim 52alias v=nvim
53alias vim=nvim
54alias vi=nvim
52alias c=clear 55alias c=clear
53alias j=joshuto 56alias j=joshuto
54alias zl=zellij 57alias zl=zellij