Skip to content

Instantly share code, notes, and snippets.

@ShohruxYusupov
ShohruxYusupov / set_up.sh
Last active August 20, 2024 17:56
bash script for setting up my working environment
#! /bin/bash
# Script for setting up working environment
# Ensure that script ran in parent shell
read -p $"Did you run the script on parent shell? Kinda 'source script.sh' [y/n] \n" answer
if [[ "$answer" != "y" ]]; then
echo "Run the script on parent shell, like this '. script.sh' or 'source script.sh'"
exit 1
fi