Skip to content

Commit 4ffa340

Browse files
author
code4mk
committed
fix directory
1 parent 0c8b669 commit 4ffa340

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# bash-now
22
bash shell setup
33

4+
# Install
5+
6+
```bash
7+
git clone --depth=1 https://github.com/code4mk/bash-now.git
8+
cd bash-now
9+
./install.sh
10+
```
411
# Manual setup
512

613
```bash

install.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
echo "bash-now is Installing..."
33

4-
if [ -d ~/bash-codes ]; then
5-
echo "~/bash-codes bash coding"
4+
if [ -d ~/bash-code ]; then
5+
echo "~/bash-code bash coding"
66
else
7-
mkdir ~/bash-codes
7+
mkdir ~/bash-code
88
fi
99

1010
if [ -d ~/bash-default ]; then
@@ -13,19 +13,19 @@ else
1313
mkdir ~/bash-default
1414
fi
1515

16-
if [ -d ~/bash-aliass ]; then
17-
echo "~/bash-aliass all aliases"
16+
if [ -d ~/bash-alias ]; then
17+
echo "~/bash-alias all aliases"
1818
else
19-
mkdir ~/bash-aliass
19+
mkdir ~/bash-alias
2020
fi
2121

2222

2323
for file in ./bash-code/*; do
24-
cp $file ~/bash-codes
24+
cp $file ~/bash-code
2525
done
2626

2727
for file in ./bash-alias/*; do
28-
cp $file ~/bash-aliass
28+
cp $file ~/bash-alias
2929
done
3030

3131
if [ -f ~/.bashrc ]; then

uninstall.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ echo "bash-now is uninstalling...."
22
echo "Done Boss! >> Try again"
33
echo "https://github.com/code4mk/bash-now"
44

5-
if [ -d ~/bash-codes ]; then
6-
rm -rf ~/bash-codes
5+
if [ -d ~/bash-code ]; then
6+
rm -rf ~/bash-code
77
fi
88

99
if [ -d ~/bash-default ]; then
@@ -12,6 +12,6 @@ if [ -d ~/bash-default ]; then
1212
rm -rf ~/bash-default
1313
fi
1414

15-
if [ -d ~/bash-aliass ]; then
16-
rm -rf ~/bash-aliass
15+
if [ -d ~/bash-alias ]; then
16+
rm -rf ~/bash-alias
1717
fi

0 commit comments

Comments
 (0)