summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ksh_aliases8
-rw-r--r--kshrc9
-rw-r--r--tmux.conf10
3 files changed, 18 insertions, 9 deletions
diff --git a/ksh_aliases b/ksh_aliases
index 783bae7..e6446fc 100644
--- a/ksh_aliases
+++ b/ksh_aliases
@@ -15,12 +15,12 @@ alias '?'=duck
alias vimpluginstall="vim +':PlugInstall' +':q!' +':q!'"
alias ipinfo="curl ipinfo.io"
alias weather="curl wttr.in"
-alias vi='vim'
+#alias vi='vim'
alias a='task add'
alias s='task sync'
alias t='task'
alias ttoday='task ml_due_or_scheduled_today'
-alias du='ncdu --color dark -rr -x --exclude .git'
+#alias du='ncdu --color dark -rr -x --exclude .git'
alias free='free -h'
alias gloga='git log --oneline --decorate --graph --all'
alias taskallprojects='task rc.list.all.projects=1 projects'
@@ -33,8 +33,8 @@ alias rcal3w="ssh bobbins rem -cc+a3 -w160 -m"
alias rcal1m="ssh bobbins rem -cca -w160 -m"
alias rcal2m="ssh bobbins rem -cca2 -w160 -m"
alias qrclip="xclip -o -s c | qrencode -o - | feh --force-aliasing -ZF -"
-alias rcal1w_small="ssh bobbins rem -cca+1 -w120 -m"
-alias rcal2w_small="ssh bobbins rem -cca+2 -w120 -m"
+alias rcal1w_small="ssh bobbins rem -cca+1 -w140 -m"
+alias rcal2w_small="ssh bobbins rem -cca+2 -w140 -m"
alias tallproj='task rc.list.all.projects=1 projects'
alias absguide='lynx https://tldp.org/LDP/abs/html/'
alias mutt='neomutt -f Mail/fastmail/INBOX/'
diff --git a/kshrc b/kshrc
index 89d6da7..b32ad55 100644
--- a/kshrc
+++ b/kshrc
@@ -1,9 +1,9 @@
# from https://www.c0ffee.net/blog/openbsd-on-a-laptop/#x11
# use vim if it's installed, vi otherwise
-case "$(command -v vim)" in
- */vim) VIM=vim ;;
- *) VIM=vi ;;
-esac
+# case "$(command -v vim)" in
+# */vim) VIM=vim ;;
+# *) VIM=vi ;;
+# esac
export EDITOR=$VIM
export FCEDIT=$EDITOR
@@ -12,6 +12,7 @@ export LESS='-iMRS -x2'
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export CLICOLOR=1
+#export LSCOLORS=Gxfxcxdxbxegedabagacad
#export PATH=$PATH:/usr/local/jdk-11/bin
export PATH=$PATH:/home/lemon/.fzf/bin
export PATH=/home/lemon/bin:$PATH
diff --git a/tmux.conf b/tmux.conf
index 0b96901..8acc4ff 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -22,7 +22,7 @@ set -sg escape-time 1
set -g default-terminal "screen-256color"
# set from advice in neovim :checkhealth
-set-option -sa terminal-overrides ',screen-256color:RGB'
+#set-option -sa terminal-overrides ',screen-256color:RGB'
# start first window and pane at 1, not zero
set -g base-index 1
@@ -84,6 +84,14 @@ unbind p
bind p paste-buffer
#bind -t vi-copy 'v' begin-selection
#bind -t vi-copy 'y' copy-selection
+# new copy and paste (needed for st terminal) = https://www.rushiagr.com/blog/2016/06/16/everything-you-need-to-know-about-tmux-copy-pasting-ubuntu/
+
+bind-key -T copy-mode-vi v send-keys -X begin-selection
+bind-key -T copy-mode-vi y send-keys -X copy-selection
+bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
+
+# also copy to system clipboard
+#bind -t vi-copy y copy-pipe "xclip -sel clip -i"
# geohot colors
set -g status-position bottom