andresgongora / synth-shell

Boost your terminal, script by script
GNU General Public License v3.0
945 stars 236 forks source link

Synth-shell on Windows WSL #239

Open anggaaryas opened 1 year ago

anggaaryas commented 1 year ago

Describe the bug make windows wsl default using synth-shell

To Reproduce Steps to reproduce the behavior: install synth-shell on wsl

Expected behavior A clear and concise description of what you expected to happen. every time i open wsl, it should open with synth-shell

Screenshots If applicable, add screenshots to help explain your problem. Cuplikan layar_20221222_120934

when opening again, the synth-shell not applied Cuplikan layar_20221222_120707

KRG-23 commented 1 year ago

I have the same issue:

C:\Users\sannlo>wsl.exe -l -v
  NAME      STATE           VERSION
* Debian    Running         1
root@RD0089573:~# source .bashrc
-bash: .bashrc: line 26: unexpected EOF while looking for matching `)'
-bash: .bashrc: line 48: syntax error: unexpected end of file

Install options were for root user only

fauzie commented 1 year ago

For me, fresh install WSL default Ubuntu (22.04.2)

First install system wide for default user not applied automatically. I add this lines to my ~/.bashrc to the last line:

##-----------------------------------------------------
## synth-shell-greeter.sh
if [ -f /usr/local/bin/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep i )" ]; then
        source /usr/local/bin/synth-shell-greeter.sh
fi

##-----------------------------------------------------
## synth-shell-prompt.sh
if [ -f /usr/local/bin/synth-shell-prompt.sh ] && [ -n "$( echo $- | grep i )" ]; then
        source /usr/local/bin/synth-shell-prompt.sh
fi