Simplify zsh
This commit is contained in:
parent
24103db8b6
commit
78ce74fe06
3 changed files with 11 additions and 23 deletions
|
@ -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 },
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue