Compare commits
No commits in common. "a25d87bb12efca9f36f5beec172020b115995648" and "1c475101d07d947245bfc49394ae6168f492685b" have entirely different histories.
a25d87bb12
...
1c475101d0
4 changed files with 5 additions and 43 deletions
|
@ -112,16 +112,6 @@
|
|||
"refreshPeriod" $defaultRefresh
|
||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||
|
||||
{{- with $app_name := "bat" -}}
|
||||
{{- with $repo := (printf "%s/%s" "sharkdp" $app_name) -}}
|
||||
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
|
||||
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
|
||||
"type" "archive-file"
|
||||
"url" (printf "https://github.com/%s/releases/download/%s/%s-%s-%s.tar.gz" $repo $version $app_name $version $myArch)
|
||||
"path" (printf "%s-%s-%s/%s" $app_name $version $myArch $app_name)
|
||||
"refreshPeriod" $defaultRefresh
|
||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||
|
||||
{{/*
|
||||
# valid arch strings:
|
||||
# darwin_amd64
|
||||
|
|
|
@ -24,9 +24,6 @@ if is_cmd 'chezmoi'; then
|
|||
${SET_X:-:} +x
|
||||
}
|
||||
czcd() { chezmoi cd "${@}"; }
|
||||
czgcd() {
|
||||
cd "$(chezmoi git -- rev-parse --show-toplevel)${1:+/${1}}"
|
||||
}
|
||||
czedext() {
|
||||
local CZ_EXT="$(find $(command chezmoi source-path) -mindepth 1 -maxdepth 1 -name '.chezmoiexternal.*')"
|
||||
CZ_EXT="${CZ_EXT:-$(chezmoi source-path "${@}")/.chezmoiexternal.yaml.tmpl}"
|
||||
|
|
|
@ -18,16 +18,12 @@ alias lu='l -U '
|
|||
alias sudo='sudo '
|
||||
|
||||
is_cmd ov \
|
||||
&& alias less="ov --wrap=false " \
|
||||
&& export PAGER="ov --wrap=false "
|
||||
&& alias less="ov " \
|
||||
&& export PAGER=ov
|
||||
|
||||
if is_cmd bat; then
|
||||
alias cat='bat --wrap=never '
|
||||
alias less='cat '
|
||||
elif is_cmd moar; then
|
||||
alias less="moar " \
|
||||
&& export PAGER=moar
|
||||
fi
|
||||
is_cmd moar \
|
||||
&& alias less="moar " \
|
||||
&& export PAGER=moar
|
||||
|
||||
is_cmd nvim \
|
||||
&& export VISUAL="nvim" EDITOR="nvim" \
|
||||
|
@ -39,11 +35,5 @@ alias vim='nvim '
|
|||
alias nvimdiff='nvim -d '
|
||||
alias vimdiff='nvimdiff '
|
||||
|
||||
if is_cmd git; then
|
||||
gitcd() {
|
||||
cd "$(git rev-parse --show-toplevel)${1:+/${1}}"
|
||||
}
|
||||
fi
|
||||
|
||||
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4:
|
||||
|
||||
|
|
|
@ -66,21 +66,6 @@ ${SET_X-:} -x
|
|||
. <( env zellij setup --generate-completion "$BASE_SHELL" )
|
||||
fi
|
||||
}
|
||||
|
||||
zellij-mode() {
|
||||
local BASE="config.kdl" ROOT=~/.config/zellij
|
||||
local SRC="${BASE}.${1:?Mode missing}"
|
||||
[[ -s "${ROOT}/${SRC}" ]] \
|
||||
|| ( printf 'Mode "%s" must exists!\n' "${1}" >&2; return 1 )
|
||||
[[ -L "${ROOT}/${BASE}" || ! -e "${ROOT}/${BASE}" ]] \
|
||||
|| ( printf 'config.kdl is an actual file, will not replace\n' >&2; return 2 )
|
||||
if [[ "$RESET" == 'reset' ]]; then
|
||||
[[ -e "${ROOT}/${BASE}" ]] && rm "${ROOT}/${BASE}"
|
||||
cp "${ROOT}/${SRC}" "${ROOT}/${BASE}"
|
||||
else
|
||||
(cd "${ROOT}"; ln -sf "${SRC}" "${BASE}")
|
||||
fi
|
||||
}
|
||||
${SET_X-:} -x
|
||||
if [[ -n "$(env which zellij)" ]]; then
|
||||
zellij-load-completion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue