Last active
November 24, 2024 05:19
-
-
Save GindaChen/4e1b31e995fbfadf7d73801e3f42c034 to your computer and use it in GitHub Desktop.
Setup azure cloud with GPU
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 characters
| touch ~/.bashrc | |
| echo '. ~/.bashrc' >> ~/.profile | |
| wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh | |
| bash ./Mambaforge-Linux-x86_64.sh -b | |
| /home/azureuser/mambaforge/bin/mamba init | |
| /home/azureuser/mambaforge/bin/mamba install -y zsh | |
| git config --global credential.helper "cache --timeout=604800" | |
| touch ~/.zshrc | |
| echo ' | |
| case $- in | |
| *i*) exec zsh -l | |
| esac' >> ~/.bashrc | |
| ZSH="${ZSH:-$HOME/.oh-my-zsh}" | |
| REPO=${REPO:-ohmyzsh/ohmyzsh} | |
| REMOTE=${REMOTE:-https://github.com/${REPO}.git} | |
| BRANCH=${BRANCH:-master} | |
| git init --quiet "$ZSH" && cd "$ZSH" \ | |
| && git config core.eol lf \ | |
| && git config core.autocrlf false \ | |
| && git config fsck.zeroPaddedFilemode ignore \ | |
| && git config fetch.fsck.zeroPaddedFilemode ignore \ | |
| && git config receive.fsck.zeroPaddedFilemode ignore \ | |
| && git config oh-my-zsh.remote origin \ | |
| && git config oh-my-zsh.branch "$BRANCH" \ | |
| && git remote add origin "$REMOTE" \ | |
| && git fetch --depth=1 origin \ | |
| && git checkout -b "$BRANCH" "origin/$BRANCH" && cd - | |
| # git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
| # sed -i 's/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"powerlevel10k\/powerlevel10k\"/g' ~/.zshrc | |
| # wget -O ~/.p10k.zsh https://gist.github.com/AgrawalAmey/8bd8474d0cffda80aa4fdaab3b0478e1/raw/20e72101c8a5ea84be24fca7df54d59ddd77cd44/.p10k.zsh | |
| # wget -O ~/.zshrc https://gist.github.com/GindaChen/5e4d2b5ee1faa7fa9b71b5da5825dad3/raw/245bf15c97a5d71f8f7d8a69cd7122c19f01e25c/azcloud_zshrc.sh | |
| # wget -O ~/.zshrc_mine https://gist.github.com/GindaChen/5e4d2b5ee1faa7fa9b71b5da5825dad3/raw/4125569e6a9935b5084c8a2e3d000957de6ea875/azcloud_zshrc.sh | |
| wget -O ~/.zshrc_mine https://gist.github.com/GindaChen/5e4d2b5ee1faa7fa9b71b5da5825dad3/raw/237ff65eae8481e0e7fa8673a70a271ee23e603c/azcloud_zshrc.sh | |
| echo "source $HOME/.zshrc_mine" >> ~/.zshrc | |
| git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
| source ~/mambaforge/bin/activate | |
| ~/.fzf/install --all | |
| /home/azureuser/mambaforge/bin/mamba init zsh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment