File tree 3 files changed +19
-12
lines changed
3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 1
1
# bash-now
2
2
bash shell setup
3
3
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
+ ```
4
11
# Manual setup
5
12
6
13
``` bash
Original file line number Diff line number Diff line change 1
1
2
2
echo " bash-now is Installing..."
3
3
4
- if [ -d ~ /bash-codes ]; then
5
- echo " ~/bash-codes bash coding"
4
+ if [ -d ~ /bash-code ]; then
5
+ echo " ~/bash-code bash coding"
6
6
else
7
- mkdir ~ /bash-codes
7
+ mkdir ~ /bash-code
8
8
fi
9
9
10
10
if [ -d ~ /bash-default ]; then
13
13
mkdir ~ /bash-default
14
14
fi
15
15
16
- if [ -d ~ /bash-aliass ]; then
17
- echo " ~/bash-aliass all aliases"
16
+ if [ -d ~ /bash-alias ]; then
17
+ echo " ~/bash-alias all aliases"
18
18
else
19
- mkdir ~ /bash-aliass
19
+ mkdir ~ /bash-alias
20
20
fi
21
21
22
22
23
23
for file in ./bash-code/* ; do
24
- cp $file ~ /bash-codes
24
+ cp $file ~ /bash-code
25
25
done
26
26
27
27
for file in ./bash-alias/* ; do
28
- cp $file ~ /bash-aliass
28
+ cp $file ~ /bash-alias
29
29
done
30
30
31
31
if [ -f ~ /.bashrc ]; then
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ echo "bash-now is uninstalling...."
2
2
echo " Done Boss! >> Try again"
3
3
echo " https://github.com/code4mk/bash-now"
4
4
5
- if [ -d ~ /bash-codes ]; then
6
- rm -rf ~ /bash-codes
5
+ if [ -d ~ /bash-code ]; then
6
+ rm -rf ~ /bash-code
7
7
fi
8
8
9
9
if [ -d ~ /bash-default ]; then
@@ -12,6 +12,6 @@ if [ -d ~/bash-default ]; then
12
12
rm -rf ~ /bash-default
13
13
fi
14
14
15
- if [ -d ~ /bash-aliass ]; then
16
- rm -rf ~ /bash-aliass
15
+ if [ -d ~ /bash-alias ]; then
16
+ rm -rf ~ /bash-alias
17
17
fi
You can’t perform that action at this time.
0 commit comments