Compare commits

...

3 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,9 @@ if status --is-interactive
alias g="git"
mkdir -p ~/.local
if [ (expr (date '+%s') - (cat "$HOME/.local/last_shell" 2>/dev/null || echo 0)) -gt "28800" ]
set time_diff (expr (date '+%s') - (cat "$HOME/.local/last_shell" 2>/dev/null || echo 0))
if [ "$time_diff" -gt "28800" ]
[ -d "$HOME/tmp" ] && rm -rf "$HOME/tmp/*"
git sit && date '+%s' > "$HOME/.local/last_shell"
echo ""
end

View File

@ -7,7 +7,7 @@ dest="$3"
root="$(pwd)"
rm -r "$dest"
cp -r "$src" "$dest"
rsync -a --exclude '.*' "$src" "$dest"
files="$(find "$dest" -type f)"