diff --git a/bin/dcs b/bin/dcs deleted file mode 100755 index c0a1a21..0000000 --- a/bin/dcs +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ $# -gt 0 ]; then - command="$@" -else - read command -fi - -sequence="$(printf '\033]%s\a' "$command")" - -case ${TERM-} in - screen*) - printf '\033Ptmux;\033%s\033\\' "$sequence" - ;; - *) - echo -n "$sequence" - ;; -esac diff --git a/bin/imshow b/bin/imshow deleted file mode 100755 index 5568379..0000000 --- a/bin/imshow +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ $# -ne 1 ]; then - echo "Usage: imshow filename" 1>&2 - exit 1 -fi - -if [ ! -e "$1" ]; then - echo "Could not find '$1'" 1>&2 - exit 1 -fi - -size=$( wc -c <"$1" ) -name="$( base64 -w 0 "$( basename "$1" )" )" - -encoded="$( base64 -w 0 <"$1" )" - -printf "1337;File=name=${name};size=${size};inline=1:${encoded}" | dcs diff --git a/bin/osc52 b/bin/osc52 deleted file mode 100755 index f98cfc0..0000000 --- a/bin/osc52 +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -MAX_LENGTH=10000 - -if [ $# -eq 0 ]; then - encoded="$( base64 -w 0 )" -else - encoded="$( echo "$@" | base64 -w 0 )" -fi - -if [ ${MAX_LENGTH} -gt 0 ] && [ ${#encoded} -gt ${MAX_LENGTH} ]; then - echo "data too large for OSC52" 1>&2 - exit 1 -else - printf "52;c;${encoded}" | dcs - echo "data sent to clipboard" 1>&2 -fi diff --git a/bin/rcsync b/bin/rcsync deleted file mode 100755 index 5537098..0000000 --- a/bin/rcsync +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ ! -f ~/.config/rclone/folders.txt ]; then - echo 'Error! Please specify folders' - exit 1 -fi - -# -n = --dry-run -RCFILTER="--filter-from=${HOME}/.dotfiles/rclonefilter" - -DRY="--dry-run" -if [ "$1" = "ok" ]; then - DRY="" -fi - -while read -r line; do - rclone sync --skip-links -P ${DRY} ${RCFILTER} ${line%%:*} gdrive:${line##*:} -done < ~/.config/rclone/folders.txt diff --git a/nvmrc b/nvmrc deleted file mode 100644 index 64f5a0a..0000000 --- a/nvmrc +++ /dev/null @@ -1 +0,0 @@ -node diff --git a/rclonefilter b/rclonefilter deleted file mode 100644 index 33a951d..0000000 --- a/rclonefilter +++ /dev/null @@ -1,3 +0,0 @@ -- *node_modules/** -- *.git/** -- *dist/** diff --git a/tools/locations b/tools/locations index abd7fce..5ff6bcd 100644 --- a/tools/locations +++ b/tools/locations @@ -6,4 +6,3 @@ tmux.conf gitconfig gitignore -nvmrc diff --git a/vim/ftdetect/jsx.vim b/vim/ftdetect/jsx.vim deleted file mode 100644 index 744d573..0000000 --- a/vim/ftdetect/jsx.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead *.jsx set filetype=javascriptreact diff --git a/vimrc b/vimrc index 1ef70dc..7cf6ea0 100644 --- a/vimrc +++ b/vimrc @@ -112,9 +112,6 @@ nnoremap k gk " clear search highlight nnoremap l :nohlsearch -" send yanked stuff to clipboard with OSC52 -nnoremap :exec "!printf ".shellescape(system('osc52', @0)) - " toggles nnoremap w :set invlist list? nnoremap p :set invpaste paste? diff --git a/zshrc b/zshrc index 1238610..e37f70a 100644 --- a/zshrc +++ b/zshrc @@ -15,9 +15,6 @@ source $ZSH/oh-my-zsh.sh autoload -U promptinit; promptinit prompt pure -# User configuration -export TZ='Asia/Singapore' - bindkey -v # vi style incremental search