-
-
Save ChrisFrontDev/2083018e1826030981737ae4550c32b0 to your computer and use it in GitHub Desktop.
Revisions
-
felipefontoura revised this gist
May 11, 2022 . No changes.There are no files selected for viewing
-
felipefontoura revised this gist
May 11, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ https://docs.microsoft.com/en-us/windows/wsl/install ``` $ wsl --set-default-version 2 $ wsl --install -d ubuntu ``` -
felipefontoura revised this gist
May 11, 2022 . 1 changed file with 11 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,36 +2,44 @@ https://docs.microsoft.com/en-us/windows/wsl/install ``` $ wsl --set-default-version 2manual#step-4---download-the-linux-kernel-update-package $ wsl --install -d ubuntu ``` ## ArchWSL https://github.com/yuk7/ArchWSL ``` $ sudo pacman-key --init $ sudo pacman-key --populate $ sudo pacman -Syy archlinux-keyring $ sudo pacman -Syyuu $ sudo pacman -Sy wget openssh ``` ## Yay https://github.com/Jguer/yay ``` $ sudo pacman -Sy --needed git base-devel $ git clone https://aur.archlinux.org/yay.git $ cd yay $ makepkg -si ``` ## ZSH https://github.com/romkatv/powerlevel10k ``` $ yay -Sy zsh $ yay -S --noconfirm zsh-theme-powerlevel10k-git $ echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc $ chsh -s /usr/bin/zsh ``` ## ZSH Auto Suggestions @@ -74,12 +82,12 @@ $ echo 'source ~/.alias' >> ~/.zshrc ``` ## ASDF - https://asdf-vm.com/ - https://github.com/asdf-vm/asdf-plugins ### Node js https://github.com/asdf-vm/asdf-nodejs ``` $ yay -Sy asdf-vm -
felipefontoura revised this gist
May 11, 2022 . 1 changed file with 122 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,4 +31,125 @@ https://github.com/romkatv/powerlevel10k $ yay -Sy zsh $ yay -S --noconfirm zsh-theme-powerlevel10k-git $ echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc $ chsh -s /usr/bin/zsh ## ZSH Auto Suggestions https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#manual-git-clone ``` $ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions $ echo 'source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh' >>~/.zshrc ``` ## Shell RUST https://zaiste.net/posts/shell-commands-rust/ ``` $ nano ~/.alias ``` ``` # Git alias g='git' alias gck='git checkout' alias gst='git status' alias gps='git push' alias gpl='git pull' alias gcm='git commit' # Shell alias ls='exa --icons' alias cat='bat' alias find='fd' alias grep='rg' alias ps='procs' ``` ``` $ yay -Sy bat exa fd ripgrep procs grex $ echo 'source ~/.alias' >> ~/.zshrc ``` ## ASDF https://asdf-vm.com/ https://github.com/asdf-vm/asdf-plugins ### Node js - https://github.com/asdf-vm/asdf-nodejs ``` $ yay -Sy asdf-vm $ echo 'source /opt/asdf-vm/asdf.sh' >> ~/.zshrc $ asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git $ asdf list-all nodejs $ asdf install nodejs 18.1.0 $ asdf global nodejs 18.1.0 $ node -v $ npm i yarn -g ``` ### Ruby https://github.com/asdf-vm/asdf-ruby ``` $ asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git $ asdf list-all ruby $ asdf install ruby 3.1.2 $ asdf global ruby 3.1.2 $ ruby -v $ echo 'gem: --no-document' >> ~/.gemrc $ gem install bundler rails $ yay -Sy postgresql-libs ``` ### Python https://github.com/danhper/asdf-python ``` $ asdf plugin-add python $ asdf list-all python $ asdf install python 2.7.18 $ asdf install python 3.10.4 $ asdf global python 2.7.18 $ python --version ``` ### PHP https://github.com/asdf-community/asdf-php ``` $ asdf plugin-add php https://github.com/asdf-community/asdf-php.git $ asdf list-all php $ yay -Sy re2c gd postgresql-libs libzip $ asdf install php 8.1.6 $ asdf global php 8.1.6 $ php -v $ composer -v $ php -m $ php -m | grep mysql $ php -m | grep imagick $ yay -Sy imagemagick $ pecl install imagick $ echo "extension=imagick.so" >> $(asdf where php)/conf.d/php.ini ``` ### Java https://github.com/halcyon/asdf-java ``` $ asdf plugin-add java https://github.com/halcyon/asdf-java.git $ asdf list-all java $ asdf install java openjdk-18.0.1.1 $ asdf global java openjdk-18.0.1.1 $ java -version $ echo 'source ~/.asdf/plugins/java/set-java-home.zsh' >> ~/.zshrc ``` -
felipefontoura created this gist
May 11, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ ## WSL https://docs.microsoft.com/en-us/windows/wsl/install $ wsl --set-default-version 2manual#step-4---download-the-linux-kernel-update-package $ wsl --install -d ubuntu ## ArchWSL https://github.com/yuk7/ArchWSL $ sudo pacman-key --init $ sudo pacman-key --populate $ sudo pacman -Syy archlinux-keyring $ sudo pacman -Syyuu $ sudo pacman -Sy wget openssh ## Yay https://github.com/Jguer/yay $ sudo pacman -Sy --needed git base-devel $ git clone https://aur.archlinux.org/yay.git $ cd yay $ makepkg -si ## ZSH https://github.com/romkatv/powerlevel10k $ yay -Sy zsh $ yay -S --noconfirm zsh-theme-powerlevel10k-git $ echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc $ chsh -s /usr/bin/zsh