config-fish/functions/__flseg_conda.fish

12 lines
243 B
Fish
Raw Normal View History

2022-04-22 14:15:09 +00:00
#!/usr/bin/env fish
# -*- mode:fish; tab-width:4 -*-
function __flseg_conda
if set -q CONDA_DEFAULT_ENV
__fishline_segment $FLCLR_CONDA_BG $FLCLR_CONDA_FG
printf "$FLSYM_CONDA"(basename $CONDA_DEFAULT_ENV)
end
end