revamp compat
This commit is contained in:
33
arch-user/bin/workspace-compat/profile.tmpl
Normal file
33
arch-user/bin/workspace-compat/profile.tmpl
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$WSCOMPAT_DIR" ] || [ "$WS_IS_COMPAT" != 1 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
[ -f ~/.profile ] && . ~/.profile
|
||||
|
||||
export EDITOR=vim
|
||||
export SHELL=/bin/bash
|
||||
export PATH="$WSCOMPAT_DIR:$PATH"
|
||||
|
||||
stty intr ^K
|
||||
|
||||
export VIMINIT="source $WSCOMPAT_DIR/.vimrc"
|
||||
cat << 'EOF_04tcIQE7' > "$WSCOMPAT_DIR/.vimrc"
|
||||
{{ template "vimrc" . }}
|
||||
EOF_04tcIQE7
|
||||
|
||||
export INPUTRC="$WSCOMPAT_DIR/.inputrc"
|
||||
cat << 'EOF_04tcIQE7' > "$WSCOMPAT_DIR/.inputrc"
|
||||
{{ template "inputrc" . }}
|
||||
EOF_04tcIQE7
|
||||
|
||||
export LESSKEYIN="$WSCOMPAT_DIR/.lesskey"
|
||||
cat << 'EOF_04tcIQE7' > "$WSCOMPAT_DIR/.lesskey"
|
||||
{{ template "lesskey" . }}
|
||||
EOF_04tcIQE7
|
||||
|
||||
cat << 'EOF_04tcIQE7' > "$WSCOMPAT_DIR/wssh"
|
||||
{{ tmpl.Exec "wssh" . | strings.ReplaceAll "EOF_" "EOF_1_" }}
|
||||
EOF_04tcIQE7
|
||||
Reference in New Issue
Block a user