Files
dev_prod/bootstrap.sh
Pratik Tripathy 5765e05ec0 - Moved existing functions from dotfiles over to this repo.
- Made pnew() loop till a valid name is given.
- Made bootstrap script to symlink all scripts to ~/.config/shell
2024-02-09 17:12:48 +05:30

13 lines
310 B
Bash
Executable File

#!/bin/sh
if [ -z "$XDG_CONFIG_HOME" ]; then
echo "Config directory (shell variable XDG_CONFIG_HOME) not setup in the computer"
return 1
fi
[ -d "$XDG_CONFIG_HOME/shell/" ] || mkdir "$XDG_CONFIG_HOME/shell/" || return
for x_10 in "$PWD"/10x*.sh; do
ln -sf "$x_10" "$XDG_CONFIG_HOME/shell/"
done