Browse Source

fix prompt wrapping prematurely in ksh

Cullum Smith 2 years ago
parent
commit
83b05434d0
3 changed files with 6 additions and 10 deletions
  1. 5
    5
      ksh/.kshrc
  2. 0
    4
      x11/.xmodmaprc
  3. 1
    1
      x11/.xsession

+ 5
- 5
ksh/.kshrc View File

@@ -9,12 +9,12 @@ set -o emacs
9 9
 
10 10
 case "$KSH_VERSION" in
11 11
   *PD*) # pdksh (OpenBSD)
12
-    _XTERM_TITLE='\033]0;\u@\h:\w\007'
13
-    _PS1_CLEAR='\033[0m'
14
-    _PS1_BLUE='\033[34m'
12
+    _XTERM_TITLE='\[\033]0;\u@\h:\w\007\]'
13
+    _PS1_CLEAR='\[\033[0m\]'
14
+    _PS1_BLUE='\[\033[34m\]'
15 15
     case "$(id -u)" in
16
-      0) _PS1_COLOR='\033[1;31m' ;;
17
-      *) _PS1_COLOR='\033[32m' ;;
16
+      0) _PS1_COLOR='\[\033[1;31m\]' ;;
17
+      *) _PS1_COLOR='\[\033[32m\]' ;;
18 18
     esac
19 19
     PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR '
20 20
     ;;

+ 0
- 4
x11/.xmodmaprc View File

@@ -1,4 +0,0 @@
1
-clear lock
2
-clear control
3
-keycode 66 = Control_L
4
-add control = Control_L Control_R

+ 1
- 1
x11/.xsession View File

@@ -14,7 +14,7 @@ xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
14 14
 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
15 15
 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
16 16
 
17
-xmodmap $HOME/.xmodmaprc
17
+setxkbmap -option ctrl:nocaps
18 18
 
19 19
 case "$(uname)" in
20 20
   OpenBSD)

Loading…
Cancel
Save