Created
June 25, 2021 18:59
-
-
Save claptimes5/3892c2995abe268ffbfecfe4a25ad306 to your computer and use it in GitHub Desktop.
WSL common .bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear cache when WSL uses too much memory | |
alias drop_cache="sudo sh -c \"echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared'\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment