diff --git a/scripts/includes/mac.sh b/scripts/includes/mac.sh index 875aeff..953cf1e 100644 --- a/scripts/includes/mac.sh +++ b/scripts/includes/mac.sh @@ -1,6 +1,6 @@ -# Mac-only commands +# Mac-only commands if [[ $OSTYPE == 'darwin'* ]]; then - alias ls='ls -hG' + modern-replace 'ls' 'exa' 'ls -hG' alias ports="netstat -ap tcp | grep -i \"listen\"" alias ports2="sudo lsof -i -P | grep LISTEN" alias trash="rmtrash" @@ -41,4 +41,12 @@ if [[ $OSTYPE == 'darwin'* ]]; then unset __conda_setup # <<< conda initialize <<< } + + # Clear cache to free up disk space + clean-cache() { + sudo rm -rf "/Users/hykilpikonna/Library/Caches/Homebrew/downloads" + sudo rm -rf "/Users/hykilpikonna/Library/Caches/Yarn" + sudo rm -rf "/Users/hykilpikonna/Library/Caches/JetBrains/Toolbox/download" + + } fi