Skip to content

Instantly share code, notes, and snippets.

@pulkitgoyal56
Last active July 9, 2024 14:47
Show Gist options
  • Save pulkitgoyal56/4b1b573c408d3a7d488fe77d20c984c7 to your computer and use it in GitHub Desktop.
Save pulkitgoyal56/4b1b573c408d3a7d488fe77d20c984c7 to your computer and use it in GitHub Desktop.
Scripts
#!/usr/bin/env sh
## Clone Gist to ~/scripts
git clone git@gist.github.com:4b1b573c408d3a7d488fe77d20c984c7.git ~/scripts
## Run Setup Script
~/scripts/setup.sh
export H="$HOME" # "/mnt/c/Users/pulki"
export P="$HOME/projects"
# ZSH_THEME="spaceship"
# plugins=(git ssh tmux zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-vi-mode zsh-history-substring-search) # autojump
source $H/configs/.zshrc
# """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
alias cdy=""
alias cdu=""
alias yui=""
#!/usr/bin/env sh
sudo apt install -y htop neofetch \
tmux screen \
reptyr \
ranger nnn \
exa \
zsh \
fonts-firacode \
nodejs
## Install Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
## Create 'playground' environment
conda env create -f playground_environment.yml
#!/usr/bin/env sh
git clone https://github.com/pulkitgoyal56/configs.git ~/configs
./symlink.sh
#!/usr/bin/env sh
git config --global user.name "Pulkit Goyal"
git config --global user.email "pulkitmds@gmail.com"
git config --global init.defaultBranch main
git config --global core.editor vim
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

FONTS

Fira Code
Source Code Pro
Menlo, Monaco, Consolas, ‘Courier New’

name: playground
channels:
# - defaults
- nodefaults
- conda-forge
- pytorch
dependencies:
- requests
# - flask
# - beautifulsoup4
- numpy
- pandas
- scipy
- sympy
- matplotlib
- seaborn
# - plotly
- ipython
- jupyterlab
- ipdb
- ipympl
- scikit-learn
- fire
- rich
- tqdm
- pytorch
- torchvision
- cpuonly
#!/usr/bin/env sh
## Install Packages
./apt.sh
## Configure Git
./git.sh
## Configure Configs
./configs.sh
## Configure ZSH
./zsh.zsh
#!/usr/bin/env zsh
# ## Change shell to zsh
# chsh -s $(which zsh)
## Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## Install Spaceship-Prompt
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt" --depth=1
ln -s "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt/spaceship.zsh-theme" "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship.zsh-theme"
## Install plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode
## Modify ~/.zshrc
# ZSH_THEME="spaceship"
# plugins=(git ssh tmux zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-vi-mode zsh-history-substring-search) # autojump
# ## Install Znap!
# git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git
# source zsh-snap/install.zsh
#
# ## Install Zsh Plugins
# znap source zsh-users/zsh-syntax-highlighting
# znap source zsh-users/zsh-autosuggestions
# znap source zsh-users/zsh-completions
# znap source zsh-history-substring-search
# znap source jeffreytse/zsh-vi-mode
# # znap source marlonrichert/zsh-autocomplete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment