Browse Source

add export function to be compatible with xonsh

master
Markus Bergholz 1 year ago
parent
commit
f88830e7ce
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      bash/mb.bashrc

+ 13
- 0
bash/mb.bashrc View File

@@ -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