bash: add wsl/*.bashrc
parent
4d12497a66
commit
409c98a5bf
@ -0,0 +1,8 @@
|
||||
ssh-add -l > /dev/null 2> /dev/null
|
||||
if [ $? = 1 ]; then
|
||||
read -N 1 -p "Load SSH key from Windows clipboard now? [y/n] " -r r
|
||||
echo
|
||||
if [ "$r" = y ]; then
|
||||
powershell.exe -noprofile -command get-clipboard | tr --delete \\r | ssh-add -
|
||||
fi
|
||||
fi
|
@ -0,0 +1 @@
|
||||
[ "$(sysctl --values net.ipv4.ip_unprivileged_port_start)" = 0 ] || wsl.exe --distribution $WSL_DISTRO_NAME --user $(id --name --user 0) -- sysctl net.ipv4.ip_unprivileged_port_start=0 > /dev/null
|
@ -0,0 +1 @@
|
||||
service cron status > /dev/null || wsl.exe --distribution $WSL_DISTRO_NAME --user $(id --name --user 0) service cron start
|
Loading…
Reference in New Issue