- 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:
12
bootstrap.sh
Executable file
12
bootstrap.sh
Executable 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
|
||||
Reference in New Issue
Block a user