- Aliases added for alternate Nvim distros

- File cleanups
- Zoxide initialization in bashrc & zshrc
This commit is contained in:
Pratik Tripathy
2024-01-10 21:59:53 +05:30
parent 3a3ace80f4
commit 44d124735d
7 changed files with 64 additions and 53 deletions

View File

@@ -16,7 +16,6 @@ alias usersearch="awk -F: '{print \"UserName: \" \$1 \", UserID: \" \$3 \", Home
alias untar='tar -zxvf '
alias v=nvim
alias n=nvim
alias vim=nvim
url_encode(){
python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.stdin.read()))" <<< "$1"
@@ -76,3 +75,19 @@ alias tat="tmux a -t"
alias tls="tmux ls"
alias tnew="tmux new"
alias tnewt="tmux new -t"
# Nvim Distro-Switcher
alias nvim-lazy="NVIM_APPNAME=lazyvim nvim"
alias nvim-chad="NVIM_APPNAME=nvchad nvim"
function 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
echo "Nothing selected"
return 0
elif [[ $config == "default" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim $@
}

View File

@@ -207,3 +207,6 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
export QT_PLUGIN_PATH=~/.local/lib/qt/plugins/:
eval "$(ssh-agent -s)"
if command -v zoxide > /dev/null; then
eval "$(zoxide init bash)"
fi

View File

@@ -4,7 +4,6 @@ return {
color_scheme = "Catppuccin Mocha",
font_size = 14.0,
font = wezterm.font_with_fallback({
-- "JetBrains Mono",
"JetBrainsMono Nerd Font",
{ family = "Symbols Nerd Font Mono", scale = 0.75 },
}),
@@ -12,7 +11,6 @@ return {
enable_tab_bar = true,
use_fancy_tab_bar = true,
hide_tab_bar_if_only_one_tab = true,
-- window_background_opacity = 0.99,
win32_system_backdrop = "Mica",
macos_window_background_blur = 80,

View File

@@ -126,3 +126,6 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
eval "$(ssh-agent -s)" > /dev/null
ulimit -n 10240
if command -v zoxide > /dev/null; then
eval "$(zoxide init zsh)"
fi