Merge branch 'main' of https://git.snaile.de/luca/dotfiles
This commit is contained in:
commit
97e2b95153
5 changed files with 37 additions and 4 deletions
0
.gitmodules
vendored
0
.gitmodules
vendored
|
@ -12,4 +12,3 @@ o.conceallevel = 0
|
||||||
|
|
||||||
g.lazyvim_php_lsp = "intelephense"
|
g.lazyvim_php_lsp = "intelephense"
|
||||||
g.lazyvim_python_lsp = "basedpyright"
|
g.lazyvim_python_lsp = "basedpyright"
|
||||||
g.lazyvim_python_ruff = "ruff_lsp"
|
|
||||||
|
|
|
@ -14,6 +14,16 @@ function xsi() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function whed() {
|
function whed() {
|
||||||
|
local script
|
||||||
script=$(which "$1")
|
script=$(which "$1")
|
||||||
[ -e "$script" ] && $EDITOR $(which "$script")
|
[ -e "$script" ] && $EDITOR $(which "$script")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hosthost() {
|
||||||
|
local ip
|
||||||
|
ip=$(
|
||||||
|
host -t A "$1" | awk '{print $4}' ||
|
||||||
|
host -t AAAA "$1" | awk '{print $5}'
|
||||||
|
)
|
||||||
|
host "$ip" | awk '{print $5}' | sed 's/.$//'
|
||||||
|
}
|
||||||
|
|
|
@ -33,7 +33,26 @@ zsnippet https://raw.githubusercontent.com/python-virtualenvwrapper/virtualenvwr
|
||||||
# NOTE: notify on long running commands
|
# NOTE: notify on long running commands
|
||||||
turbo
|
turbo
|
||||||
zload MichaelAquilina/zsh-auto-notify
|
zload MichaelAquilina/zsh-auto-notify
|
||||||
AUTO_NOTIFY_IGNORE+=("lf" "lazygit" "elia")
|
AUTO_NOTIFY_IGNORE+=(
|
||||||
|
vim
|
||||||
|
nvim
|
||||||
|
less
|
||||||
|
more
|
||||||
|
man
|
||||||
|
tig
|
||||||
|
watch
|
||||||
|
git
|
||||||
|
commit
|
||||||
|
top
|
||||||
|
htop
|
||||||
|
ssh
|
||||||
|
nano
|
||||||
|
lf
|
||||||
|
lazygit
|
||||||
|
elia
|
||||||
|
gunicorn
|
||||||
|
kube
|
||||||
|
)
|
||||||
|
|
||||||
# NOTE: colorize help output
|
# NOTE: colorize help output
|
||||||
turbo
|
turbo
|
||||||
|
@ -60,6 +79,11 @@ zload "software/tralios-kube"
|
||||||
turbo as:"completion" from:"gitlab.tralios.de" pick:"_kube"
|
turbo as:"completion" from:"gitlab.tralios.de" pick:"_kube"
|
||||||
zload "software/tralios-kube"
|
zload "software/tralios-kube"
|
||||||
|
|
||||||
|
# NOTE: fzf bindings and completions
|
||||||
|
turbo multisrc"shell/{completion,key-bindings}.zsh" \
|
||||||
|
id-as"junegunn/fzf_completions" pick"/dev/null"
|
||||||
|
zload junegunn/fzf
|
||||||
|
|
||||||
# NOTE: fzf completion menu
|
# NOTE: fzf completion menu
|
||||||
turbo
|
turbo
|
||||||
zload Aloxaf/fzf-tab
|
zload Aloxaf/fzf-tab
|
||||||
|
|
|
@ -87,8 +87,8 @@ function lf-wrap() {
|
||||||
zle -N lf-wrap
|
zle -N lf-wrap
|
||||||
|
|
||||||
function lazygit-wrap() {
|
function lazygit-wrap() {
|
||||||
[ ! -d "$(pwd)/.git" ] && [[ $(read -erk "?Not in a git repository. Create a new git repository? (y/n): ") =~ ^[Yy]$ ]] && git init
|
[ ! -d "${PWD}/.git" ] && [[ $(read -erk "?Not in a git repository. Create a new git repository? (y/n): ") =~ ^[Yy]$ ]] && git init "$PWD"
|
||||||
[ -d "$(pwd)/.git" ] && lazygit -p "$(pwd)"
|
[ -d "${PWD}/.git" ] && lazygit -p "$PWD"
|
||||||
reset_prompt
|
reset_prompt
|
||||||
}
|
}
|
||||||
zle -N lazygit-wrap
|
zle -N lazygit-wrap
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue