Skip to content

Commit 7d3f4f0

Browse files
committed
chore: configs; casks; cleanup
1 parent 706102d commit 7d3f4f0

10 files changed

Lines changed: 23 additions & 37 deletions

home/.chezmoiscripts/darwin/run_onchange_after_20_install-ya-pkg.sh.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# vim: set expandtab ts=4 sw=4 ft=bash:
4+
# vim: set expandtab ft=bash ts=2 sw=2:
55

66
[[ $(command -v ya) ]] || exit 0
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# vim: set expandtab ft=bash ts=4 tw=4:
2+
# vim: set expandtab ft=bash ts=2 tw=2:
33

44
echo "Removing vim package..."
55
brew uninstall --force vim

home/.chezmoiscripts/darwin/run_onchange_before_17_install-brew-packages.sh.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# vim: set expandtab ts=4 sw=4 ft=bash:
4+
# vim: set expandtab ft=bash ts=2 sw=2:
55

66
packages_common=(
77
age
@@ -49,10 +49,10 @@ packages_common=(
4949
# shellcheck disable=SC1083
5050
packages_machine=(
5151
{{- if .personalMachine }}
52+
cloudflare-speed-cli
5253
gitleaks
5354
marp-cli
5455
pre-commit
55-
teamookla/speedtest/speedtest
5656
{{- else }}
5757
awscli
5858
azure-cli

home/.chezmoiscripts/darwin/run_onchange_before_20_install-brew-casks.sh.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# vim: set expandtab ts=4 sw=4 ft=bash:
4+
# vim: set expandtab ft=bash ts=2 sw=2:
55

66
casks_common=(
77
firefox

home/.chezmoiscripts/darwin/run_onchange_before_25_install-go-bins.sh.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# vim: set expandtab ts=4 sw=4 ft=bash:
4+
# vim: set expandtab ft=bash ts=2 sw=2:
55

66
[[ $(command -v go) ]] || exit 0
77

home/dot_profile.d/30-functions.sh.tmpl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@ getip() {
22
dig TXT -4 +short o-o.myaddr.l.google.com @ns1.google.com | tr -d '"'
33
}
44
5-
getbuf() {
6-
local argl=${#@}
7-
local v=""
8-
local version_string="latest version"
9-
if [[ $argl -eq 0 ]]; then
10-
v=$(git ls-remote --tags --sort v:refname --exit-code --refs https://github.com/bufbuild/buf | tail -n1 | cut -d '/' -f3 | cut -c2-)
11-
else
12-
v="$1"
13-
version_string="given version"
14-
fi
15-
16-
local link
17-
link="https://github.com/bufbuild/buf/releases/download/v$v/buf-$(uname -s)-$(uname -m)"
18-
if ! curl -sI --fail -o /dev/null "$link"; then echo "No such version $v" && return 1; fi
19-
20-
bufpath=$(which buf)
21-
if [[ -e "$bufpath" && -x "$bufpath" ]]; then
22-
if [[ $($bufpath --version) == "$v" ]]; then echo "Current version $v equals to the $version_string" && return 0; fi
23-
rm "$bufpath"
24-
elif [[ -z $bufpath ]]; then bufpath=${GOBIN}/buf; fi
25-
echo "Getting the $version_string: $v"
26-
curl -sSL -o "$bufpath" https://github.com/bufbuild/buf/releases/download/v"$v"/buf-"$(uname -s)"-"$(uname -m)" && chmod +x "$bufpath"
27-
}
28-
295
get_branch() {
306
git branch 2>/dev/null | sed -e '/^[^*]/d ; s/* \(.*\)/(\1) /'
317
}

home/dot_profile.tmpl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# profile -*- mode: sh -*-
2-
# vim: set expandtab ts=4 sw=4 ft=sh:
2+
# vim: set expandtab ft=sh ts=2 sw=2:
33

44
for f in "$HOME/.profile.d/"*.sh; do
5-
[ -r "$f" ] && . "$f"
5+
[ -r "$f" ] && . "$f"
66
done
77

88
alias k='kubectl'
99
alias ls='ls -G'
1010
alias grep='grep --color=auto'
11-
alias c='clear'
12-
alias grpcurl='grpcurl -plaintext'
1311
alias ssh='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
1412
alias scp='scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
1513
alias hg='history | grep'
1614
{{- if eq .chezmoi.os "darwin" }}
1715
alias flashdns='sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder'
16+
alias speedtest='cloudflare-speed-cli'
1817
{{- end }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fs=yes
1+
fs=false
22
volume=100
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[flavor]
2-
dark = "catppuccin-frappe"
2+
dark = "aurora-storm"
3+
light = "aurora-dawn"

home/symlinked/yazi_package.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
[[plugin.deps]]
22
use = "yazi-rs/plugins:git"
3-
rev = "8cd50c6"
3+
rev = "4c63ed3"
44
hash = "88e56a64b7ce7c4314427452343fef17"
55

66
[[flavor.deps]]
77
use = "yazi-rs/flavors:catppuccin-frappe"
88
rev = "4770a34"
99
hash = "1844f850b0c5d1af511c84399c95e3d7"
10+
11+
[[flavor.deps]]
12+
use = "kshawkat/aurora-storm"
13+
rev = "c28b9da"
14+
hash = "857a516312705831dfda438cb99bd2e5"
15+
16+
[[flavor.deps]]
17+
use = "kshawkat/aurora-dawn"
18+
rev = "9f389d6"
19+
hash = "e90f2a40d8c2f768d84738657b24ffd5"

0 commit comments

Comments
 (0)