How to restore Sublime Text options and settings and cancel the symbolic link created in Dropbox?

How to restore Sublime Text options and settings and cancel the symbolic link created in Dropbox? I cannot access the settings for Sublime Text 2 on my machine after creating a symbolic link in Dropbox.

These are the commands that I ran on my main machine:

cd ~/Dropbox ln -s ~/'Library/Application Support/Sublime Text 2' sublime-text-2-settings 

Created "sublime-text-2-settings" in the root directory of Dropbox.

Then, on the second machine, I ran the following commands:

 cd ~/Library/Application\ Support/Sublime\ Text\2/ rm -R Packages ln -s ~/Dropbox/sublime-text-2-settings Packages 

This is from: https://github.com/Rowno/rolandwarmerdam.co.nz/blob/master/app/_posts/2013-01-09-sync-sublime-text-2-settings.md

Now Sublime Text 2 on both machines is displayed in a common black and white color scheme, the black sidebar is also displayed, so it is impossible to view files. In addition, I cannot access the settings on any machine, which makes it impossible to move forward.

  • How can I cancel a symbolic link?
  • How can I access the settings of my main machine?

I spent hours configuring and adding packages, and I would really like to lose it all.

+1
source share
1 answer

Solved at the moment (brute force).

  • Disable symlink (unlink / path / to / sym / link) (on both machines)
  • Copy + Paste - Package packages in ~ / 'Library / Application Support / Sublime Text 2' sublime-text-2-settings on the main machine.
  • Reinstall Sublime Text on the secondary computer.
  • Restart Sublime on both machines.

Aaand, back to action!

Although No. 3 and No. 4 were not to be in this particular order. It seems that the main problem was that the Packages folder was moved on the main machine and was completely replaced with a symbolic link on the second machine. The symbolic link was also missing from the Packages folder, as it moved on the main machine before the symbolic link was created.

0
source

Source: https://habr.com/ru/post/944638/


All Articles