Move from omf to fisher for fishshell
This commit is contained in:
10
config/fish/functions/__z_clean.fish
Normal file
10
config/fish/functions/__z_clean.fish
Normal file
@ -0,0 +1,10 @@
|
||||
function __z_clean -d "Clean up .z file to remove paths no longer valid"
|
||||
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
|
||||
|
||||
if test -f $tmpfile
|
||||
command awk -F "|" 'system("test -d \"" $1 "\"") == 0 { print $0 }' $Z_DATA > $tmpfile
|
||||
command mv -f $tmpfile $Z_DATA
|
||||
end
|
||||
|
||||
__z_complete
|
||||
end
|
||||
Reference in New Issue
Block a user