You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If yes, then keep the current directory:
~/bin or /usr/local/sbin
If no, and using local permission do
#!/bin/bash
# Create a 'bin' directory in your home directory if it doesn't exist
mkdir -p ~/bin
# Add the 'bin' directory to your PATH if not already added
if [[ ":$PATH:" != *":$HOME/bin:"* ]]; then
echo 'export PATH="$PATH:$HOME/bin"' >> ~/.bashrc
fi
# Apply changes to the current session
source ~/.bashrc
echo "Setup complete. 'bin' directory added to PATH."
The text was updated successfully, but these errors were encountered:
If yes, then keep the current directory:
~/bin or /usr/local/sbin
If no, and using local permission do
The text was updated successfully, but these errors were encountered: