@@ -163,17 +163,6 @@ else if type -q nano
163163 set -gx VISUAL nano
164164end
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
179168function yield-git-repos
@@ -250,6 +239,11 @@ function spoof-mac-address
250239 nmcli connection up " $name "
251240end
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
255249function ping-ts
@@ -277,6 +271,20 @@ function ping-ts
277271 end
278272end
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
282290function rm
@@ -403,6 +411,12 @@ function __ssh_strict
403411 ssh -o HostKeyAlgorithms=ssh-ed25519 -o StrictHostKeyChecking=yes $args
404412end
405413
414+ # ### swap files ###############################################################
415+
416+ for swap in $HOME /.mode.sw*
417+ command rm -v $swap
418+ end
419+
406420# ### tail #####################################################################
407421
408422function tf
0 commit comments