summaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
authorKipras Melnikovas <kipras@kipras.org>2024-07-15 20:37:04 +0300
committerGitHub <noreply@github.com>2024-07-15 17:37:04 +0000
commit131dcce2689f9fe45572212803b36be11ff2eb4e (patch)
tree8381c44ecd2871d66fb1a3826ad983d53f16ec2a /.config/zsh
parent368d3583a6c2e067491a160553c4130187fd0127 (diff)
downloadeibhear-131dcce2689f9fe45572212803b36be11ff2eb4e.tar.gz
eibhear-131dcce2689f9fe45572212803b36be11ff2eb4e.tar.zst
eibhear-131dcce2689f9fe45572212803b36be11ff2eb4e.zip
shortcuts: export env vars for each shortcut (#1395)
useful if want to use shortcuts w/ different progs instead of their default behavior (cd / $EDITOR), e.g.: ```sh cd ~/Downloads mv foo.mp3 $music ``` Co-authored-by: Luke Smith <luke@lukesmith.xyz>
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 8af5d13..ff7d4ae 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -15,6 +15,7 @@ setopt inc_append_history
# Load aliases and shortcuts if existent.
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"