Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
v1.1.1 🔖
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawnly committed Dec 11, 2016
1 parent 6de08b6 commit 94c6416
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .installers/install_bash.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
echo "Hello $USER!"
echo "Give me a second please..."

mv ../dist/aliases.sh .aliases
mv ../dist/profile.sh .profile

mkdir ~/.shells/

cp dist/.* ~/.shells/
cp -rf ../dist/.* ~/.shells/

# BASH
cat dist/rcfile.sh >> ~/.bashrc
Expand Down
5 changes: 3 additions & 2 deletions .installers/install_zsh.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
echo "Hello $USER!"
echo "Give me a second please..."

cp -rf ../zsh/dotfiles ~/.oh-my-zsh/custom/plugins
mkdir ~/.shells/
cp -rf ../dist/.* ~/.shells/

# ZSH or OH-MY-ZSH
# ZSH
cat ../dist/rcfile.sh >> ~/.zshrc

echo "Done! Please visit https://www.github.com/Rawnly for more infos."
4 changes: 2 additions & 2 deletions dist/rcfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export FULLNAME="$NAME $SURNAME"
export NICKNAME="edit this in ~/.zshrc"

# Source files
source ~/.shells/.aliases # or . path/to/file
source ~/.shells/.profile # or . path/to/file
source ~/.shells/aliases.sh
source ~/.shells/profile.sh

# Invoke welcome message function in profile.sh
welcome
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ sudo npm install -g weather-commandline
if [[ $SHELL == '/bin/zsh' ]]
then
echo "Your are using $SHELL"
source .installers/install_zsh.sh
./.installers/install_zsh.sh
elif [[ $SHELL == '/bin/sh' ]]
then
echo "Your are using $SHELL"
source .installers/install_bash.sh
./.installers/install_bash.sh
fi

0 comments on commit 94c6416

Please sign in to comment.