2023-12-18 14:33:29 -05:00
|
|
|
#!/bin/bash
|
|
|
|
_getHeader "$name" "$author"
|
|
|
|
|
2024-01-14 06:04:52 -05:00
|
|
|
echo "Define the command to open the terminal (Default: alacritty)."
|
2023-12-18 14:33:29 -05:00
|
|
|
|
|
|
|
# Define File
|
2024-01-14 06:04:52 -05:00
|
|
|
targetFile="$HOME/dotfiles/.settings/terminal.sh"
|
2023-12-18 14:33:29 -05:00
|
|
|
|
|
|
|
# Current Value
|
|
|
|
echo "Current Value: $(cat $targetFile)"
|
|
|
|
|
|
|
|
# Select Value
|
|
|
|
customvalue=$(gum input --placeholder "Command to start")
|
|
|
|
if [ ! -z $customvalue ] ;then
|
|
|
|
# Write into file
|
|
|
|
echo "$customvalue" > $targetFile
|
|
|
|
else
|
|
|
|
echo "Please define a command"
|
|
|
|
sleep 1
|
|
|
|
fi
|
|
|
|
_goBack
|
|
|
|
|
|
|
|
|