summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-12-12 17:21:11 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-12-12 17:21:11 +0100
commitf09fce4ff51ff3e26a4d77b23ca34950c9162fc0 (patch)
treeec18b3c02cab7f17574d1168f7a40693ae610cc6 /config/essentials
parentffc2a7d3cee6385508601374bdd34db253b70c65 (diff)
use seperate shell folder that works cross shells
Diffstat (limited to 'config/essentials')
-rw-r--r--config/essentials/shell/aliases.sh (renamed from config/essentials/zsh/aliases.sh)4
-rw-r--r--config/essentials/shell/functions.sh (renamed from config/essentials/zsh/functions.sh)2
-rw-r--r--config/essentials/zsh/.zshrc4
3 files changed, 5 insertions, 5 deletions
diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/shell/aliases.sh
index 2e23010..157e7aa 100644
--- a/config/essentials/zsh/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -224,8 +224,8 @@ alias vb='vbm startvm'
# quick config
alias ez='$EDITOR ${ZDOTDIR:-~}/.zshrc'
-alias eza='$EDITOR ${ZDOTDIR}/aliases.sh'
-alias ezf='$EDITOR ${ZDOTDIR}/functions.zsh'
+alias eza='$EDITOR $HOME/.config/shell/aliases.sh'
+alias ezf='$EDITOR $HOME/.config/shell/functions.sh'
alias eto='$EDITOR ~/sync/TODO'
alias edw='$EDITOR ~/proj/suckless/dwm/config.def.h'
alias edm='$EDITOR ~/proj/suckless/dmenu/config.def.h'
diff --git a/config/essentials/zsh/functions.sh b/config/essentials/shell/functions.sh
index b285e05..37e471c 100644
--- a/config/essentials/zsh/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -188,7 +188,7 @@ gpg_backup()
{
# $1: option
# $2: output file (without .asc)
- gpg_command() {gpg "$1" --armor > "$2".asc ; }
+ gpg_command() { gpg "$1" --armor > "$2".asc; }
gpg_command --export-secret-keys "private"
gpg_command --export "public"
gpg_command --export-ownertrust "trust"
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 7b1f7a0..230de24 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -67,8 +67,8 @@ zle -N add-surround surround
zle -N change-surround surround
# Source files
-. $ZDOTDIR/functions.sh
-. $ZDOTDIR/aliases.sh
+. $XDG_CONFIG_HOME/shell/functions.sh
+. $XDG_CONFIG_HOME/shell/aliases.sh
for file in /{etc,usr/lib}/os-release
do [ -f "$file" ] && . "$file" && break