Dainty is a color theme generator with support for Visual Studio Code. Dainty Light and Dainty Dark are the default presets. They’re balanced and refined color themes, using carefully selected colors within the Lab color space.
See https://dainty.site/wsltty for more information.
git clone https://github.com/alexanderte/dainty-wsltty.git
cd dainty-wsltty
yarn
yarn build
The build
script builds dainty
to dist
directory.
The build
script, when run with -i
or --install
, builds and installs dainty
to the WSLtty/Mintty themes
directory.
yarn build -i
yarn build -i -t mintty
To install the theme using yarn build
, you need to run Git Bash as administrator. Mintty needs to be installed through Git for Windows using the default installation path.
See https://dainty.site/configuration for more information.
Directories with permissions 777
are rendered as blue on green. In WSL, the current default mount and process umask setting causes this to be applied to most directories. To instead mount directories with permissions 755, and enable using chmod
within the Windows mount, add /etc/wsl.conf
with the following content:
[automount]
enabled = true
options = "metadata,umask=0022,fmask=0011"
mountFsTab = false
There currently is an issue preventing the default /etc/profile
umask from being applied. This means that newly created files and directories are created with permissions 666
and 777
, respectively. A workaround is adding the following to .bashrc
:
umask 022
Even after these changes you might have files with the executable flag set. I would suggest to only remove the flag for files that you know. The flag can be removed recursively in a directory by running:
chmod -R -x+X name-of-directory
It might not be needed, but the following can be added to .bashrc
to prevent directories with permissions 777
render as blue on green:
export LS_COLORS='ow=01;34'
Paths in WSL might become verbose when working with code mounted on the Windows file system. By adding the following to .bashrc
and replacing the first two variables, the Windows paths will render as ≈/
. Linux paths will render as ~/
.
function ps1_pwd {
windows_home="/mnt/c/Users/Alexander Teinum"
wsl_home="/home/alexanderte"
pwd=`pwd`
if [[ $pwd == $windows_home* ]]; then
echo ≈${pwd:${#windows_home}}
elif [[ $pwd == $wsl_home* ]]; then
echo ~${pwd:${#wsl_home}}
elif [[ $pwd != "/" ]]; then
echo $pwd
fi
}
export PS1='`ps1_pwd`/ '
The WSLtty window title can be set to “WSLtty” by adding the following to .bashrc
:
echo -ne "\e]0;WSLtty\a"
Under extras
in the repository there is an .ico
file with the terminal Feather icon stroked with the Dainty blue 24 color. This can be set by setting the icon for the WSLtty shortcut.
Dainty is licensed under the MIT License.