summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup/core/vim.sh2
-rwxr-xr-xsetup/setup.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/setup/core/vim.sh b/setup/core/vim.sh
index 1e1a4c1..9571887 100755
--- a/setup/core/vim.sh
+++ b/setup/core/vim.sh
@@ -8,6 +8,8 @@ CLIP_HOST="p.noml.ch"
8CLIP_PORT="5023" 8CLIP_PORT="5023"
9CLIP_CMD="openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 ${CLIP_HOST} ${CLIP_PORT}" 9CLIP_CMD="openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 ${CLIP_HOST} ${CLIP_PORT}"
10 10
11grep -q 'netcat_clipboard' "$VIMRC_PATH" && exit 0
12
11cat << EOF >> "$VIMRC_PATH" 13cat << EOF >> "$VIMRC_PATH"
12augroup netcat_clipboard 14augroup netcat_clipboard
13 au! 15 au!
diff --git a/setup/setup.sh b/setup/setup.sh
index d5c009b..731310e 100755
--- a/setup/setup.sh
+++ b/setup/setup.sh
@@ -3,8 +3,8 @@
3SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" 3SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
4cd "$SCRIPT_DIR" || exit 4cd "$SCRIPT_DIR" || exit
5 5
6# Shell appearance 6# Shell appearance (only append if not already present)
7sudo tee -a /etc/bashrc > /dev/null << 'EOF' 7grep -q 'di=38;5;135' /etc/bashrc || sudo tee -a /etc/bashrc > /dev/null << 'EOF'
8LS_COLORS=$LS_COLORS:'di=38;5;135:ex=00;32:' ; export LS_COLORS 8LS_COLORS=$LS_COLORS:'di=38;5;135:ex=00;32:' ; export LS_COLORS
9PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ ' 9PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ '
10export TERM=xterm-256color 10export TERM=xterm-256color