aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2021-01-17 15:55:40 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2021-01-17 15:57:20 +0100
commitd0f5528ec11c9957dd9b62688771eb62acb0c47f (patch)
treeb32a203aa1bdadcbbde4e158beaae764ebe72215 /linux
parent5c196fb44cd3d569fe5aafc267c8fd5a2abffeb3 (diff)
downloaddotfiles-d0f5528ec11c9957dd9b62688771eb62acb0c47f.tar.gz
dotfiles-d0f5528ec11c9957dd9b62688771eb62acb0c47f.zip
Do things with zsh and tmux
Diffstat (limited to 'linux')
-rw-r--r--linux/tmux.conf57
-rw-r--r--linux/zshrc56
2 files changed, 48 insertions, 65 deletions
diff --git a/linux/tmux.conf b/linux/tmux.conf
index 5abfeb1..4977e70 100644
--- a/linux/tmux.conf
+++ b/linux/tmux.conf
@@ -1,19 +1,40 @@
+# -- general -------------------------------------------------------------------
+#set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
+set -as terminal-overrides ",*:U8=0"
+set -s escape-time 10 # faster command sequences
+set -s focus-events on
+
run-shell "powerline-daemon -q"
-source "/Users/jakobstendahl/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf"
+#source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"
+source "/home/jakob/.local/lib/python3.9/site-packages/powerline/bindings/tmux/powerline.conf"
+
+# -- display -------------------------------------------------------------------
set -g base-index 1
setw -g pane-base-index 1
+setw -g automatic-rename on # rename window to reflect current program
+set -g renumber-windows on # renumber windows when a window is closed
-set-option -g default-shell /opt/local/bin/zsh
-set-option -g pane-border-fg colour235
-set-option -g pane-active-border-fg colour240
+set -g display-panes-time 800 # slightly longer pane indicators display time
+set -g display-time 1000 # slightly longer status messages display time
-set-option -g message-bg colour235
-set-option -g message-fg colour166
+set -g status-interval 10 # redraw status line every 10 seconds
+
+set-option -g default-shell /usr/bin/zsh
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
+# activity
+set -g monitor-activity on
+set -g visual-activity off
+
+# -- navigation ----------------------------------------------------------------
+
+# Set window notification
+setw -g monitor-activity on
+set -g visual-activity on
+
unbind C-b
set -g prefix C-a
@@ -22,7 +43,25 @@ bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
-setw -g monitor-activity on
-set -g visual-activity on
+bind P paste-buffer
+bind-key -Tcopy-mode-vi 'v' send -X begin-selection
+bind-key -Tcopy-mode-vi 'y' send -X copy-selection
+bind-key -Tcopy-mode-vi 'r' send -X rectangle-toggle
+bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -sel clip -i'`
+
+bind-key S-Left swap-window -t -1
+bind-key S-Right swap-window -t +1
+
+# Bells
+set -g visual-bell on
+set -g bell-action any
+
+# Scroll in shell
+set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+#set -wg xterm-keys 1
+set -g mouse on
+#set-option -s set-clipboard off
+
+
+
-set-window-option -g window-status-current-bg yellow
diff --git a/linux/zshrc b/linux/zshrc
deleted file mode 100644
index d43b59d..0000000
--- a/linux/zshrc
+++ /dev/null
@@ -1,56 +0,0 @@
-# If you come from bash you might have to change your $PATH.
-# export PATH=$HOME/bin:/usr/local/bin:$PATH
-
-# Check if env setup file exists
-if [ ! -f /usr/local/etc/zsh_env_setup ]; then
- echo "export ZSH=$HOME/.oh-my-zsh" > /usr/local/etc/zsh_env_setup
- echo "DEFAULT_USER=$USER" >> /usr/local/etc/zsh_env_setup
-fi
-
-# Source env setup file
-source /usr/local/etc/zsh_env_setup
-
-# Source powerlevel10k theme
-ZSH_THEME="powerlevel10k/powerlevel10k"
-
-COMPLETION_WAITING_DOTS="true"
-
-# Setup plugins
-plugins=(
- git
- zsh-autosuggestions
- zsh-syntax-highlighting
-)
-
-# Setup oh-my-zsh
-source $ZSH/oh-my-zsh.sh
-
-# Locales
-export LC_ALL=en_US.UTF-8
-export LANG=en_US.UTF-8
-
-# Path add bin
-path+=("$(readlink /Users/$DEFAULT_USER/bin)")
-export path
-
-# Add aliases
-alias krak='/Applications/GitKraken.app/Contents/MacOS/GitKraken -p "$(PWD)" &>> /dev/null &'
-alias lsp="ps -ax | grep"
-alias lsa="ls -la"
-alias lsg="ls | grep"
-alias lsag="ls -la | grep"
-alias ls="tput setaf 3 && echo \"'lsa' for 'ls -la', \n'lsg' for 'ls | grep',\n'lsag' for 'ls -la | grep',\n'lsp' for 'ps -ax |grep'\" && tput sgr0 && ls"
-
-# man pages in colors
-man() {
- LESS_TERMCAP_md=$'\e[01;31m' \
- LESS_TERMCAP_me=$'\e[0m' \
- LESS_TERMCAP_se=$'\e[0m' \
- LESS_TERMCAP_so=$'\e[01;44;33m' \
- LESS_TERMCAP_ue=$'\e[0m' \
- LESS_TERMCAP_us=$'\e[01;32m' \
- command man "$@"
-}
-
-# Source powerlevel10k conf
-[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh \ No newline at end of file