Skip to content

Instantly share code, notes, and snippets.

@himanshuain
Last active November 20, 2024 05:25
Show Gist options
  • Select an option

  • Save himanshuain/4082841aaf13a2fe64b9771fea6768f9 to your computer and use it in GitHub Desktop.

Select an option

Save himanshuain/4082841aaf13a2fe64b9771fea6768f9 to your computer and use it in GitHub Desktop.
My notes

run below commands

at path

cd $main

sh -c "$(curl -fsSL https://install.ohmyz.sh)"

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions //auto suggestion

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting //syntax highlighting

open .zshrc in your home directory, to change it from:

plugins=(git)

to this:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

source ~/.zshrc

to open and see prev zshrc

ls -l ~/.zshrc*

editing zshrc and adding this at bottom

source ~/.nvm/nvm.sh

autoload -U add-zsh-hook load-nvmrc() { local node_version="$(nvm version)" local nvmrc_path="$(nvm_find_nvmrc)"

if [ -n "$nvmrc_path" ]; then local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")

if [ "$nvmrc_node_version" = "N/A" ]; then
  nvm install
elif [ "$nvmrc_node_version" != "$node_version" ]; then
  nvm use
fi

elif [ "$node_version" != "$(nvm version default)" ]; then echo "Reverting to nvm default version" nvm use default fi } add-zsh-hook chpwd load-nvmrc load-nvmrc

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

export PATH=/opt/homebrew/bin:$PATH

install git

brew install git

get the git path

which git

paste the path in the settings.json if same not there

"git.path": "/opt/homebrew/bin/git",

{
"artificialDelayMilliseconds": 1500,
"keepExistingTerminalsOpen": false,
"runOnStartup": false,
"terminals": [
{
"splitTerminals": [
{
"name": "UIV4",
"commands": ["cd santaba-uiv4", "npm run start:mf"]
}
]
},
{
"splitTerminals": [
{
"name": "Terminal",
"commands": ["cd santaba-uiv4"]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment