Browse Source

add export function to be compatible with xonsh

master
Markus Bergholz 3 years ago
parent
commit
f88830e7ce
  1. 13
      bash/mb.bashrc

13
bash/mb.bashrc

@ -169,3 +169,16 @@ function aur() {
alias x11orwayland="loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type"
alias hosts="grep 'Host ' ~/.ssh/config"
alias fail="tail -f"
function export(){
if [ -z "$XONSH_ENCODING" ]
then
# this is not xonsh
command export $@
else
# this is xonsh
bash -c ! export $@
fi
}

Loading…
Cancel
Save