Commits

Christopher Nilsson committed a4a3120

prompt tweaks.

* The "Aspen magic" special case uses square brackets in the original POSIX script.
* Removed extra space in the normal prompt, again to match the original script.

Comments (0)

Files changed (2)

 
 ##file activate.fish
 ACTIVATE_FISH = """
-eJytVt9v2kgQfuevmC5EFyowutdKrUQVTiAlECVcpFN7shZ7jFexd7ndtZ30r++sbYwNpvdSHhJ7
-d358M/PNjIewjYWBSCQIaWYs7BAygyEUwsbAPNgJOeOBFTm36EXCxAw+Rlql4J4/wm1s7eHTbObe
-TIxJ4im9Hw+G8K4yCLiUyoLOJAgLodAY2OR9MIgySRaVhBCPpgGmIbDFG8nlQtuMJyhz4DIEjTbT
-EqwCqXTKEyjdAF0LrWSK0rIB0G9IkgYtqCRsX0LOteC7BE0pJSKwSGFOJbCRv7m/819WT9u/5/f+
-43y7ZFAKuZ8zNd2/gTuGS8muHEK/AMrw/7z+s11u1svNw4Jdum7uzgE0F7+G0RVzYK6g+Wv1vPQf
-nzYPj1t/87J4elrdtfAcy2WcB1do/0AEONhe532muu5r6SPKxfqlg4qNuN7n3/78l8GHz8CkkiEd
-68wRBU+ghvCMSQTHuw/9aE8EazCUOIaQSYdDaI0Jz7s8abGy630wOJamBR6Y77defZ+dxC5YAaOS
-Gx1ysVFLfeb7X1drfz1/WJClWryB22IEpYtOBtU/mP4HZ9Xuh9BiVJ88tq2UiWq48qOL079bPc+/
-3i/qUh9b0LGjblCaIgZ4U44JCGks8hBU5PrT5dtMajVqbqJUmAUINkao6OXBJketRSjkvjzGN2Gs
-e2nmB00u5Obdq80sVYGkMgEeVkqq1AsyqjJVuDLrlDgkwlo38pRGKJR+rU3Uhtab7eITPFvh4pAm
-I6FYFTXMXIQIJjsclLYQKU32jaWBWJk3ExpgvLYDpf8m+2WqIOX6FbUHqz0NtDIcsuHkUuUGlncq
-R+KGWWW2HNC3FtODexp3OmZkLLeZabWGIUp3Qm91bZM9z/MaFQxiBazJq09+/ZYOgy9fYNQB01Wl
-UfJ9+AuhU1O2kVy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FjrRp7SCLnSL5WJytBqvZl/gicrXBzS
+ZCQUq7yCeRAhgsn2e6UtREqTfWNpIJbmzZgGGK/sQOG/zn6RKki5fkHtwXJHA60Ih2w4uVS5geWd
+ypG4YVaaLQb0jcV0755GrY4ZGMttZhqtYYjSrdAbXVtnz/O8WgWDWAGr8+qTX7+hw+DLFxi0wLRV
+aZR8778jdGrKJpLr8n3I8Q+KIeVhGQi7hOQUxmBUpok2wp6C8a5Z1SlMomuXTd9u9zmvVJ+dkLRz
+zlJHq0byFMMxwXRbDlTJVCxVCRKoXHoX4XdOz0a5/SDG4GXLDdXa/XVO2n3HRi29mgINzc9uIrGW
+WMWKPQaCggmclCPdjE4k5Xgngmo7U8BoulSROqDc9Hmeez/RUmEOXqDSqVGRzbnGKXfWphfKe+K4
+jYANzbeh+TE0MDQMbihgP1AJgZhsYZtklLlYWBw14iZEXfE3dcsvAjo6Z0c7S5gYfAfXzdCMhua/
+wvof4FRfBdXz5TfH1UV65ry9034BcEj1Sw==
 """.decode("base64").decode("zlib")
 
 ##file activate.bat

virtualenv_support/activate.fish

             if test $_checkbase = "__"
                 # special case for Aspen magic directories
                 # see http://www.zetadev.com/software/aspen/
-                printf "%s(%s)%s %s" (set_color -b blue white) (basename dirname "$VIRTUAL_ENV") (set_color normal) (_old_fish_prompt)
+                printf "%s[%s]%s %s" (set_color -b blue white) (basename dirname "$VIRTUAL_ENV") (set_color normal) (_old_fish_prompt)
             else
-                printf "%s(%s)%s %s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) (_old_fish_prompt)
+                printf "%s(%s)%s%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) (_old_fish_prompt)
             end
         end 
         set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"