From 78ce74fe066c6b81310c5e74c253a229bc3671cf Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Mon, 7 Oct 2024 12:03:17 +0500 Subject: [PATCH] Simplify zsh --- nvim/lua/plugins.lua | 8 +++++++- zsh/dot-zshenv | 14 ++++---------- zsh/zsh-functions | 12 ------------ 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 02c1c42..92ab499 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -37,7 +37,13 @@ return { build = ":TSUpdate" }, - { "abecodes/tabout.nvim", config = true }, + { + "abecodes/tabout.nvim", + config = { + ignore_beginning = false + } + }, + { "numToStr/Comment.nvim", config = true }, { "nvim-lualine/lualine.nvim", config = true }, { "windwp/nvim-autopairs", config = true }, diff --git a/zsh/dot-zshenv b/zsh/dot-zshenv index de3aec5..b6dea61 100644 --- a/zsh/dot-zshenv +++ b/zsh/dot-zshenv @@ -1,23 +1,17 @@ typeset -U path path+="$HOME/bin" +path+="$HOME/.local/npm/bin" +path+="$HOME/.dotnet/tools" export DOTS="$HOME/docs/repos/dots" export VISUAL="nvim" export EDITOR="nvim" +export npm_config_prefix="$HOME/.local/npm" + if command -v pyenv &> /dev/null; then eval "$(pyenv init -)" fi -export npm_config_prefix="$HOME/.local/npm" -path+="$HOME/.local/npm/bin" - -path+="$HOME/.dotnet/tools" - -if [ -f "$ZDOTDIR/zsh-secrets" ]; then - source "$ZDOTDIR/zsh-secrets" -fi - - # vim: filetype=zsh diff --git a/zsh/zsh-functions b/zsh/zsh-functions index f788965..48ec76a 100644 --- a/zsh/zsh-functions +++ b/zsh/zsh-functions @@ -27,16 +27,4 @@ function find-directory() { } zle -N find-directory -function forgejo_clone() { - local repo_name - repo_name=$(curl -X GET "https://git.hadeedahmad.xyz/api/v1/user/repos" \ - -H "Authorization: token ${FORGEJO_API_KEY}" \ - --silent | jq -r ".[].name" | fzf --height="~50%" --reverse) - - if [ -n "$repo_name" ]; then - git clone "forgejo:hadeed/$repo_name" - fi -} -zle -N forgejo_clone - # vim: filetype=zsh