Skip to content

Commit

Permalink
Rm redundant scripts, moving what remains into common-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fusion809 committed Jun 9, 2018
1 parent 77c2bee commit 4692ffe
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 181 deletions.
Empty file modified .bashrc
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Shell/common-scripts"]
path = Shell/common-scripts
url = https://github.com/fusion809/common-scripts
Empty file modified .zshrc
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
11 changes: 11 additions & 0 deletions Shell/01-common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if [[ $SHELL == /bin/zsh ]]; then
for i in $(dirname "$0")/common-scripts/*.sh
do
. "$i"
done
else
for i in $HOME/Shell/common-scripts/*.sh
do
. "$i"
done
fi
35 changes: 0 additions & 35 deletions Shell/02-cd.sh

This file was deleted.

File renamed without changes.
12 changes: 0 additions & 12 deletions Shell/03-variables.sh

This file was deleted.

23 changes: 0 additions & 23 deletions Shell/04-shell.sh

This file was deleted.

9 changes: 0 additions & 9 deletions Shell/05-vim.sh

This file was deleted.

43 changes: 0 additions & 43 deletions Shell/06-git.sh

This file was deleted.

59 changes: 0 additions & 59 deletions Shell/07-chroot.sh

This file was deleted.

1 change: 1 addition & 0 deletions Shell/common-scripts
Submodule common-scripts added at aba0a3
Empty file modified root/.bashrc
100644 → 100755
Empty file.
Empty file modified root/.zshrc
100644 → 100755
Empty file.

0 comments on commit 4692ffe

Please sign in to comment.