mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-15 03:13:10 +00:00
refactor: Replace all shell command searching with Chezmoi searching
This commit is contained in:
parent
f89211ef87
commit
433c576a44
1 changed files with 25 additions and 32 deletions
|
@ -1,45 +1,38 @@
|
||||||
|
{{- if lookPath "pipx" }}
|
||||||
# Enable pipx completions
|
# Enable pipx completions
|
||||||
if [ $(command -v pipx) ]; then
|
|
||||||
eval "$(register-python-argcomplete pipx)"
|
eval "$(register-python-argcomplete pipx)"
|
||||||
fi
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if lookPath "nvim" }}
|
||||||
# Preferred editor for local and remote sessions
|
# Preferred editor for local and remote sessions
|
||||||
if [ $(command -v nvim) ]; then
|
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
elif [ $(command -v nano) ]; then
|
{{- end }}
|
||||||
export EDITOR=nano
|
|
||||||
elif [ $(command -v vim) ]; then
|
|
||||||
export EDITOR=vim
|
|
||||||
elif [ $(command -v emacs) ]; then
|
|
||||||
export EDITOR='emacs -nw'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(command -v kate) ]; then
|
{{- if lookPath "kate" }}
|
||||||
export VISUAL=kate
|
export VISUAL=kate
|
||||||
elif [ $(command -v code) ]; then
|
{{- else if lookPath "codium" }}
|
||||||
|
export VISUAL=codium
|
||||||
|
{{- else if lookPath "code" }}
|
||||||
export VISUAL=code
|
export VISUAL=code
|
||||||
elif [ $(command -v emacs) ]; then
|
{{- end }}
|
||||||
export VISUAL=emacs
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
{{- if lookPath "most" }}
|
||||||
# Set a cool new pager with color support
|
# Set a cool new pager with color support
|
||||||
if [ $(command -v most) ]; then
|
|
||||||
export PAGER=most
|
export PAGER=most
|
||||||
fi
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{- if or (lookPath "bat") (lookPath "catbat") }}
|
||||||
# Replace cat with bat
|
# Replace cat with bat
|
||||||
if [ $(command -v bat) ]; then
|
|
||||||
export BAT_PAGER="less -SRF"
|
export BAT_PAGER="less -SRF"
|
||||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
export MANROFFOPT="-c"
|
export MANROFFOPT="-c"
|
||||||
fi
|
{{- end }}
|
||||||
|
|
||||||
# Add notification support for long-running processes
|
# Add notification support for long-running processes
|
||||||
if [ $(command -v ntfy) ]; then
|
{{- if lookPath "ntfy" }}
|
||||||
eval "$(ntfy shell-integration --longer-than 30)"
|
eval "$(ntfy shell-integration --longer-than 30)"
|
||||||
export AUTO_NTFY_DONE_IGNORE="vim nano emacs kate zshconfig screen tmux ssh top htop less more most nethogs 'singularity shell' julia man glances"
|
export AUTO_NTFY_DONE_IGNORE="vim nano emacs kate zshconfig screen tmux ssh top htop less more most nethogs 'singularity shell' julia man glances"
|
||||||
fi
|
{{- end }}
|
||||||
|
|
||||||
# Set the Nextflow enviroment caches
|
# Set the Nextflow enviroment caches
|
||||||
export NXF_HOME="$HOME/.nextflow"
|
export NXF_HOME="$HOME/.nextflow"
|
||||||
|
|
Loading…
Reference in a new issue