When adding a variable in export The variable is deleted automatically upon the end of the cli session or the closing of wsl
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$ export desk=/mnt/c/Users/hp/Desktop
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$ echo $desk
/mnt/c/Users/hp/Desktop
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$ exit
C:\Users\hp>bash
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$ echo $desk
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$
Distribution used
ubuntu wsl
.bashrc
– pLumo Aug 13 '20 at 10:45