more tildas

This commit is contained in:
Adam Perkowski 2024-09-28 21:04:14 +02:00
parent 858d1194fb
commit 9618128ff8
No known key found for this signature in database
GPG Key ID: 7CBDB58ECF1D3478
2 changed files with 5 additions and 5 deletions

View File

@ -136,10 +136,10 @@ clone_config_folders() {
# Extract the directory name
dir_name=$(basename "$dir")
# Clone the directory to ~/.config/
# Clone the directory to $HOME/.config/
if [ -d "$dir" ]; then
cp -r "$dir" "$HOME/.config/"
printf "%b\n" "${GREEN}Cloned $dir_name to ~/.config/${RC}"
printf "%b\n" "${GREEN}Cloned $dir_name to $HOME/.config/${RC}"
else
printf "%b\n" "${RED}Directory $dir_name does not exist, skipping${RC}"
fi
@ -153,7 +153,7 @@ configure_backgrounds() {
# Set the variable BG_DIR to the path where backgrounds will be stored
BG_DIR="$PIC_DIR/backgrounds"
# Check if the ~/Pictures directory exists
# Check if the $HOME/Pictures directory exists
if [ ! -d "$PIC_DIR" ]; then
# If it doesn't exist, print an error message and return with a status of 1 (indicating failure)
printf "%b\n" "${RED}Pictures directory does not exist${RC}"

View File

@ -2,13 +2,13 @@
. ../common-script.sh
# Check if ~/.ssh/config exists, if not, create it
# Check if $HOME/.ssh/config exists, if not, create it
if [ ! -f "$HOME/.ssh/config" ]; then
touch "$HOME/.ssh/config"
chmod 600 "$HOME/.ssh/config"
fi
# Function to show available hosts from ~/.ssh/config
# Function to show available hosts from $HOME/.ssh/config
show_available_hosts() {
printf "%b\n" "Available Systems:"
grep -E "^Host " "$HOME/.ssh/config" | awk '{print $2}'