mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 23:10:13 +00:00
reset git history
This commit is contained in:
16
bin/emacs_env
Executable file
16
bin/emacs_env
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function export-emacs {
|
||||
if [ "$(emacsclient -e t)" != 't' ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
for name in "${@}"; do
|
||||
value=$(eval echo \"\$${name}\")
|
||||
emacsclient -e "(setenv \"${name}\" \"${value}\")" >/dev/null
|
||||
done
|
||||
}
|
||||
|
||||
for i in $(python -c $"import os; [print(k) for k in os.environ.keys()]"); do
|
||||
export-emacs "$i"
|
||||
done
|
Reference in New Issue
Block a user