- 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
This commit is contained in:
Pratik Tripathy
2024-02-09 10:04:49 +05:30
parent 44ccbbfe6e
commit 5765e05ec0
6 changed files with 159 additions and 15 deletions

12
bootstrap.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/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