Skip to content

Commit 19fb8f2

Browse files
dycwweb-flow
andauthored
Add git-fetch-repo-lint (#902)
Co-authored-by: github-actions-bot <noreply@github.com>
1 parent 7177be8 commit 19fb8f2

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configs/shell/shell.fish

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,6 @@ else if type -q nano
163163
set -gx VISUAL nano
164164
end
165165

166-
#### path dotfiles ############################################################
167-
168-
set -l script_dir (dirname -- (realpath -- (status filename)))
169-
set -gx PATH_DOTFILES (realpath -- "$script_dir/../..")
170-
171-
#### swap files ###############################################################
172-
173-
for swap in $HOME/.mode.sw*
174-
command rm -v $swap
175-
end
176-
177166
#### git ######################################################################
178167

179168
function yield-git-repos
@@ -250,6 +239,11 @@ function spoof-mac-address
250239
nmcli connection up "$name"
251240
end
252241

242+
#### path dotfiles ############################################################
243+
244+
set -l script_dir (dirname -- (realpath -- (status filename)))
245+
set -gx PATH_DOTFILES (realpath -- "$script_dir/../..")
246+
253247
#### ping #####################################################################
254248

255249
function ping-ts
@@ -277,6 +271,20 @@ function ping-ts
277271
end
278272
end
279273

274+
#### repo-lint ################################################################
275+
276+
if type -q repo-lint
277+
function git-fetch-repo-lint
278+
git fetch
279+
git hard-reset (git current-branch)
280+
if test -f Cargo.toml
281+
cargo update
282+
end
283+
repo-lint
284+
__git_all
285+
end
286+
end
287+
280288
#### rm #######################################################################
281289

282290
function rm
@@ -403,6 +411,12 @@ function __ssh_strict
403411
ssh -o HostKeyAlgorithms=ssh-ed25519 -o StrictHostKeyChecking=yes $args
404412
end
405413

414+
#### swap files ###############################################################
415+
416+
for swap in $HOME/.mode.sw*
417+
command rm -v $swap
418+
end
419+
406420
#### tail #####################################################################
407421

408422
function tf

0 commit comments

Comments
 (0)