diff options
Diffstat (limited to '.config/hypr/macros.m4')
-rw-r--r-- | .config/hypr/macros.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/hypr/macros.m4 b/.config/hypr/macros.m4 index 2e084d6..98e1eff 100644 --- a/.config/hypr/macros.m4 +++ b/.config/hypr/macros.m4 @@ -22,3 +22,15 @@ define(__subbind, [ __bindX(,,$@) bind = , $1, submap, reset ]) + +define(__setup_env, [ + esyscmd([ + sed -E ' + /^export/!d + /`/d + s/^export ([A-Z0-9a-z_]+)="(.*)"/env = \1, \2/ + s/^export ([A-Z0-9a-z_]+)=\x27(.*)\x27/env = \1, \2/ + s/^export ([A-Z0-9a-z_]+)=(.*)/env = \1, \2/ + ' ~/.bashrc + ]) +]) |