README.MD typo fix

Aliases
- Moved to appropriately named file
- Added aliases for copying git-template and prettier-template
- Fix to git_push_all_changes function

Nvims
- Compacted the function

Project Access
- pnew() updated to clone remore repo or create a new one from scratch depending on options provided
This commit is contained in:
Pratik Tripathy
2024-03-06 16:09:39 +05:30
parent 1723bf8084
commit ca49dcafc2
6 changed files with 46 additions and 39 deletions

View File

@@ -2,16 +2,14 @@
# Nvim Distro-Switcher
alias nvim-lazy="NVIM_APPNAME=nvim-lazy nvim"
alias OldConfig="NVIM_APPNAME=oldconfig nvim"
nvims() {
items=$(find -L "$HOME"/.config -maxdepth 2 -name "init.lua" -type f -execdir sh -c 'pwd | xargs basename' \;)
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config  " --height=~50% --layout=reverse --border --exit-0)
if [ -z "$config" ]; then
config=$(find -L "$HOME"/.config -maxdepth 2 -name "init.lua" -type f -execdir sh -c 'pwd | xargs basename' \; | fzf --prompt=" Neovim Config ")
if [ "$config" = "" ]; then
echo "Nothing selected"
return 0
elif [ "$config" = "default" ]; then
config=""
fi
NVIM_APPNAME=$config nvim "$@"
}
# Nvim Distro-Switcher
alias nvim-lazy="NVIM_APPNAME=nvim-lazy nvim"