Skip to content

Commit

Permalink
feat(wsl)!: remove sr (fsrs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Sep 2, 2024
1 parent 62945bd commit acc8b5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 100 deletions.
28 changes: 8 additions & 20 deletions root/scripts/forget
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,11 @@ echo_blue() {
echo -e "\033[34m$1\033[0m"
}

forget_daily() {
echo_green '$ forget'
echo
echo_green '$ sr'
$VIMRC_ROOT/scripts/wsl/sr
}

if [ $# -eq 0 ]; then
echo_blue "forget alias? run:"
echo "alias"
echo_blue "forget functions? run:"
# do not output function start with "_"
echo "declare -F | grep -oP '(?<=declare -f )[a-zA-Z]+\w+'"
echo_blue "other commands:"
# output all functions in this file begin with "forget_"
declare -F | grep -oP '(?<=declare -f )forget_\w+' | sed 's/forget_/forget /'
exit 0
else
forget_$1
fi
echo_blue "forget alias? run:"
echo "alias"
echo_blue "forget functions? run:"
# do not output function start with "_"
echo "declare -F | grep -oP '(?<=declare -f )[a-zA-Z]+\w+'"
# echo_blue "other commands:"
# output all functions in this file begin with "forget_"
# declare -F | grep -oP '(?<=declare -f )forget_\w+' | sed 's/forget_/forget /'
80 changes: 0 additions & 80 deletions root/scripts/wsl/sr

This file was deleted.

0 comments on commit acc8b5b

Please sign in to comment.