my-config icon indicating copy to clipboard operation
my-config copied to clipboard

Add ability to quickly configure my-config on new OS

Open samhstn opened this issue 5 years ago • 8 comments

If I ssh into a fresh Linux OS, I would like to be able to run one short command which will set up my config or a similar environment.

Something like:

bash <(curl -s https://samhstn.com/setup)

This script should:

  • install zsh
  • ensure vim was installed (otherwise apt-get install vim)
  • add a .vimrc
  • add and configure sams-config plugin
  • add sams-theme theme

samhstn avatar Mar 08 '19 16:03 samhstn

Do you want the config to both linux and mac, or just mac? @samhstn

ghost avatar Dec 28 '20 13:12 ghost

To work for both OSX and linux would be cool!

But I don't know how often I would run it on mac - probably not very often.

I could see myself wanting to run a simple setup script on linux much more often though.

samhstn avatar Dec 28 '20 22:12 samhstn

I asked because you changed the title from linux to new OS.

ghost avatar Dec 28 '20 22:12 ghost

@samhstn So, you want a script that sets the environment up on linux systems?

ghost avatar Dec 28 '20 22:12 ghost

I think I might be able to help with the linux part.

ghost avatar Dec 28 '20 23:12 ghost

From what I've noticed you seem to have a particular view of how you envision the scrip to run. Perhaps it would be more beneficial if you could guide me through your view of the process. I've been working on scripts that do this sort of thing, but it seems that you have a different angle and approach in mind.

ghost avatar Dec 28 '20 23:12 ghost

I would like to be able to run the script in the following environments:

  • https://hub.docker.com/_/debian (using apt for installing packages)
  • https://hub.docker.com/_/centos (using yum for installing packages)

The script should:

  • install vim, curl, and others (tbd).
  • install ohmyzsh.
  • set up this m tool.
  • Configure this basic .zshrc as described here: https://github.com/samhstn/my-config#zsh.
  • Add this basic .vimrc.

@syspentarc thanks for nudging me on this. I'm keen to close off this issue, but there are a couple of outstanding things to do first:

  • https://github.com/samhstn/samhstn/pull/108 (I've been working on this locally, need to push up my work).
  • https://github.com/samhstn/m/issues/23

samhstn avatar Dec 30 '20 16:12 samhstn

@samhstn I wouldn't mind getting assigned to this task. It would take me a while, but I'd love to help.

ghost avatar Dec 30 '20 16:12 ghost