Compare commits

..

3 Commits

Author SHA1 Message Date
PorridgePi
5a4c5787ac zshrc: chore: Remove macOS specific aliases 2022-09-27 03:48:14 +00:00
PorridgePi
9979f47394 bootstrap: thefuck: Initial commit 2022-09-27 03:46:52 +00:00
PorridgePi
3a4d0db956 bootstrap: python3: Initial commit 2022-09-27 03:45:34 +00:00
3 changed files with 22 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
if ! command -v python3 &> /dev/null; then
echo 'Installing python3'
sudo apt update
sudo apt install python3 -y
fi
echo 'python3 is installed'
if ! command -v pip3 &> /dev/null; then
echo 'Installing pip3'
sudo apt update
sudo apt install python3-pip -y
fi
echo 'pip3 is installed'

View File

@@ -0,0 +1,7 @@
if ! command -v thefuck &> /dev/null; then
bash $(dirname "$0")/python3.sh
echo 'Installing thefuck'
sudo pip install thefuck
fi
echo 'thefuck is installed'

12
.zshrc
View File

@@ -5,18 +5,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Intel (Rosetta 2) Homebrew
alias ibrew='arch -x86_64 /usr/local/bin/brew'
# Refresh Proxy Audio Device
alias proxy-audio="sudo launchctl kickstart -k system/com.apple.audio.coreaudiod"
# Run script that reloads coreaudio
alias ka='zsh /Users/porridge/kill.sh'
# To get GPG signing to work on macOS
# export GPG_TTY=$(tty)
eval $(thefuck --alias)
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!