Skip to content

Instantly share code, notes, and snippets.

@dontdieych
Created December 22, 2025 07:44
Show Gist options
  • Select an option

  • Save dontdieych/b551c847e319a30f159c2e2690aec796 to your computer and use it in GitHub Desktop.

Select an option

Save dontdieych/b551c847e319a30f159c2e2690aec796 to your computer and use it in GitHub Desktop.
install-error
󰣇 a  ~/tmp   16:39 
 zsh --no-rcs
a-macbookair% curl -sL https://bit.ly/Fresh-Install | sh -s -- --zsh
/dev/fd/63: line 431: syntax error near unexpected token `fi'
/dev/fd/63: line 431: `fi'
Everything you asked is done. Enjoy your new setup!
a-macbookair% exit
󰣇 a  ~/tmp   16:40 
 zsh
[ERROR] Critical: Main config not found at /home/a/.config/zsh-conf/zsh/zshrc
Please try reinstalling the configuration.
a-macbookair% exit
󰣇 a  ~/tmp   16:40 
 git clone https://github.com/adityastomar67/zsh-conf.git /tmp/dots
cp -r /tmp/dots/zsh $HOME/.config/
cp -r /tmp/dots/.zshrc $HOME
source $HOME/.zshrc
fatal: destination path '/tmp/dots' already exists and is not an empty directory.
~/.zshrc (line 37): 'else' builtin not inside of if block
else
^~~^
from sourcing file ~/.zshrc
source: Error while reading file “/home/a/.zshrc”
󰣇 a  ~/tmp   16:40 
 /bin/rm -rf /tmp/dots/
󰣇 a  ~/tmp   16:41 
 git clone https://github.com/adityastomar67/zsh-conf.git /tmp/dots
cp -r /tmp/dots/zsh $HOME/.config/
cp -r /tmp/dots/.zshrc $HOME
source $HOME/.zshrc
Cloning into '/tmp/dots'...
remote: Enumerating objects: 397, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 397 (delta 75), reused 98 (delta 48), pack-reused 266 (from 1)
Receiving objects: 100% (397/397), 188.70 KiB | 650.00 KiB/s, done.
Resolving deltas: 100% (234/234), done.
~/.zshrc (line 37): 'else' builtin not inside of if block
else
^~~^
from sourcing file ~/.zshrc
source: Error while reading file “/home/a/.zshrc”
󰣇 a  ~/tmp   16:41 
 zsh
[ERROR] Critical: Main config not found at /home/a/.config/zsh-conf/zsh/zshrc
Please try reinstalling the configuration.
a-macbookair% rm /tmp/dots
rm: cannot remove '/tmp/dots': Is a directory
a-macbookair% rm /tmp/dots -rf
a-macbookair% git clone https://github.com/adityastomar67/zsh-conf.git /tmp/dots
cp -r /tmp/dots/zsh $HOME/.config/
cp -r /tmp/dots/.zshrc $HOME
source $HOME/.zshrc
Cloning into '/tmp/dots'...
remote: Enumerating objects: 397, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 397 (delta 75), reused 98 (delta 48), pack-reused 266 (from 1)
Receiving objects: 100% (397/397), 188.70 KiB | 533.00 KiB/s, done.
Resolving deltas: 100% (234/234), done.
[ERROR] Critical: Main config not found at /home/a/.config/zsh-conf/zsh/zshrc
Please try reinstalling the configuration.
a-macbookair%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment