fixed init_rc and added it to general setup
This commit is contained in:
6
dist/init_rc.sh
vendored
6
dist/init_rc.sh
vendored
@@ -7,8 +7,8 @@ if [ -f "$HOME/.bashrc" ]; then
|
||||
elif [ -f "$HOME/.zshrc" ]; then
|
||||
SHELL_RC="$HOME/.zshrc"
|
||||
else
|
||||
echo "No .bashrc or .zshrc file found in home directory."
|
||||
exit 1
|
||||
touch "$HOME/.bashrc"
|
||||
SHELL_RC="$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
echo "Using shell rc file: $SHELL_RC"
|
||||
@@ -21,3 +21,5 @@ if ! grep -q "export PATH=\$PATH:\$HOME/.local/bin" "$SHELL_RC"; then
|
||||
else
|
||||
echo ".local/bin is already in PATH in $SHELL_RC"
|
||||
fi
|
||||
|
||||
source "$SHELL_RC"
|
||||
|
||||
Reference in New Issue
Block a user