Class: Chid::Commands::Installs::Dotfile
- Inherits:
-
Chid::Command
- Object
- Chid::Command
- Chid::Commands::Installs::Dotfile
- Defined in:
- lib/chid/commands/installs/dotfile.rb
Constant Summary
Constants inherited from Chid::Command
Instance Attribute Summary
Attributes inherited from Chid::Command
Instance Method Summary collapse
Methods inherited from Chid::Command
command, help, #initialize, map_options_with_values, run
Constructor Details
This class inherits a constructor from Chid::Command
Instance Method Details
#run ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/chid/commands/installs/dotfile.rb', line 22 def run puts "\nInstalling the YADR Dotfiles..." puts "\nCreating undodir folder" system('mkdir ~/.vim/undodir') ::ChidConfig.on_linux do puts "\nInstalling all dependencies" system('sudo apt-get update') system('sudo apt-get install curl') system('sudo apt-get install tmux') system('sudo apt-get install xclip') system('sudo apt install npm') system('sudo apt-get install ripgrep') system('sudo apt-get install fzf') system('sudo apt-get install zsh') system('sudo apt install git-all') end puts "\nDownloading tmux config" system('curl -o ~/.tmux.conf https://gist.githubusercontent.com/rachidcalazans/b9ede3f6e49450b41a5bbaff9ccc8cad/raw/f0c1fe18b22772ad04bf322aeb49df993e73877c/.tmux.conf') puts "\nDownloading .vimrc" system('curl -o ~/.vimrc https://gist.githubusercontent.com/rachidcalazans/e7b7ee668b9a8b247b3a9c20e5669366/raw/84af22bb3c5fb24b01aa8a01e8b783f85a6928b5/.vimrc') puts "\nDownloading coc-settings.json" system('curl -o ~/.vim/coc-settings.json https://gist.githubusercontent.com/rachidcalazans/a29bdedde40b328a14279bda419ccd4f/raw/59492c4096d77aef4690b1516d9c9f597fafd205/coc-settings.json') puts "\nInstalling Oh My ZSH" system('sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"') puts "\nInstalling all Vim Plugins" system("vim +'PlugInstall --sync' +qa") puts "\nDotfiles installed successfully" end |