Added NeoVIM config

This commit is contained in:
Kulvir Singh
2024-01-01 02:53:52 +05:30
parent eed96f6800
commit da1c768f31
32 changed files with 1266 additions and 3067 deletions

41
.zshrc
View File

@@ -1,10 +1,3 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@@ -15,7 +8,7 @@ export ZSH="$HOME/.oh-my-zsh"
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
@@ -81,6 +74,7 @@ plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
you-should-use
)
source $ZSH/oh-my-zsh.sh
@@ -113,21 +107,36 @@ source $ZSH/oh-my-zsh.sh
alias ga='git add'
alias gaa='git add -A'
alias gcm='git commit -m'
alias gd='git diff'
alias gp='git pull'
alias gpsh='git push'
alias gs='git status'
# ----------------------
# Python Aliases
# ----------------------
alias python='python3'
alias cat='bat'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias ls='colorls'
alias nv='nvim'
# homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# cool to use tools (if ever wanted to)
# neofetch
# macchina
# bun completions
[ -s "/Users/kulvir/.bun/_bun" ] && source "/Users/kulvir/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# pnpm
export PNPM_HOME="/Users/kulvir/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# spaceship
source /opt/homebrew/opt/spaceship/spaceship.zsh