structural change

This commit is contained in:
Dirk Alders 2023-04-30 13:37:26 +02:00
parent 9f5463234c
commit 9f82db520d
33 changed files with 91 additions and 13 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
# zshrc.d
zshrc.d/*.zsh
.zshrc.d/*.zsh
# ---> Linux
*~

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "bin"]
path = bin
url = https://git.mount-mockery.de/dirk/bin.git

View File

View File

@ -112,7 +112,7 @@ fi
# You may want to put all your additions into a folder file like
# ~/.config_files/zshrc.d, instead of adding them here directly.
for file in ~/.config_files/zshrc.d/*.zsh; do
for file in ~/.zshrc.d/*.zsh; do
source "$file"
done

7
.zshrc.d/my_defaults Executable file
View File

@ -0,0 +1,7 @@
ln -vs __available__/bin.zsh
ln -vs __available__/dd.zsh
ln -vs __available__/less.zsh
ln -vs __available__/neofetch.zsh
ln -vs __available__/prompt_color.zsh
ln -vs __available__/prompt_powerline.zsh

4
.zshrc.d/root_defaults Executable file
View File

@ -0,0 +1,4 @@
ln -vs __available__/less.zsh
ln -vs __available__/prompt_color.zsh
ln -vs __available__/prompt_powerline.zsh

12
add_bin Executable file
View File

@ -0,0 +1,12 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/bin) ]]; then
echo "A ssh configuration already exists (~/bin)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/bin ~/bin
fi

12
add_powerline Executable file
View File

@ -0,0 +1,12 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.config/powerline) ]]; then
echo "A powerline configuration already exists (~/.config/powerline)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.config/powerline ~/.config/powerline
fi

12
add_ssh_config Executable file
View File

@ -0,0 +1,12 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.ssh/config) ]]; then
echo "A ssh configuration already exists (~/.ssh/config)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.ssh/config ~/.ssh/config
fi

12
add_tmux Executable file
View File

@ -0,0 +1,12 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.tmux.conf) ]]; then
echo "A tmux configuration already exists (~/.tmux.conf)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.tmux.conf ~/.tmux.conf
fi

13
add_vim Executable file
View File

@ -0,0 +1,13 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.vimrc || -e ~/.vim/skeletons) ]]; then
echo "A vim configuration already exists (~/.vimrc or ~/.vim/skeletons)"
echo "Remove this configuration and start the script again"
else
echo "Creating base links"
ln -vs $SCRIPTPATH/.vimrc ~/.vimrc
ln -vs $SCRIPTPATH/.vim/skeletons ~/.vim/skeletons
fi

13
add_zshrc Executable file
View File

@ -0,0 +1,13 @@
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.zshrc || -e ~/.zshrc.d) ]]; then
echo "A zsh configuration already exists (~/.zshrc or ~/.zshrc.d)"
echo "Remove this configuration and start the script again"
else
echo "Creating base links"
ln -vs $SCRIPTPATH/.zshrc ~/.zshrc
ln -vs $SCRIPTPATH/.zshrc.d ~/.zshrc.d
fi

1
bin Submodule

@ -0,0 +1 @@
Subproject commit c04d69dab8b8a0e8a62e4822fb580ba69f045e9b

View File

@ -1,7 +0,0 @@
ln -s __available__/bin.zsh
ln -s __available__/dd.zsh
ln -s __available__/less.zsh
ln -s __available__/neofetch.zsh
ln -s __available__/prompt_color.zsh
ln -s __available__/prompt_powerline.zsh

View File

@ -1,4 +0,0 @@
ln -s __available__/less.zsh
ln -s __available__/prompt_color.zsh
ln -s __available__/prompt_powerline.zsh