Skip to content

Commit 7c55bf6

Browse files
authored
fix choudshell using vim when type ↑↓←→ (#37)
1 parent a245e02 commit 7c55bf6

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v1.2.6
2+
2022-12-29
3+
## Bugfix:
4+
- fix choudshell using vim when type ↑↓←→
5+
## Dependency:
6+
- kubecube 1.4.0
7+
18
# v1.2.4
29
2022-8-31
310
## Bugfix:

cloudshell/amd64/kubecube-chroot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,7 @@ fi
9090
## change owner of director to make account able to write
9191
chown $USERNAME:$USERNAME {$DIR,$DIR/tmp,$DIR/var,$DIR/root}
9292

93-
chroot --userspec=$USERNAME:$USERNAME $DIR /bin/bash
93+
chroot --userspec=$USERNAME:$USERNAME $DIR /bin/bash
94+
95+
echo "set nocp" >> $DIR/root/.vimrc
96+
source $DIR/root/.vimrc

cloudshell/arm64/kubecube-chroot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,7 @@ fi
9090
## change owner of director to make account able to write
9191
chown $USERNAME:$USERNAME {$DIR,$DIR/tmp,$DIR/var,$DIR/root}
9292

93-
chroot --userspec=$USERNAME:$USERNAME $DIR /bin/bash
93+
chroot --userspec=$USERNAME:$USERNAME $DIR /bin/bash
94+
95+
echo "set nocp" >> $DIR/root/.vimrc
96+
source $DIR/root/.vimrc

0 commit comments

Comments
 (0)