From c93b0d111ba906676d40b439bcf66f2dd2fc3dee Mon Sep 17 00:00:00 2001 From: xzeldon Date: Thu, 5 May 2022 04:40:59 +0300 Subject: [PATCH] initial commit --- .config/fish/config.fish | 16 ++++++++ .gitignore | 0 .tmux.conf | 89 ++++++++++++++++++++++++++++++++++++++++ README.md | 1 + 4 files changed, 106 insertions(+) create mode 100644 .config/fish/config.fish create mode 100644 .gitignore create mode 100644 .tmux.conf create mode 100644 README.md diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..01bf740 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,16 @@ +# cargo path +export PATH="$HOME/.cargo/bin:$PATH" +# tty (for gpg key prompt) +export GPG_TTY=(tty) + +alias cls="clear" + +if type -q exa + alias ll="exa -l -g --icons" + alias lla="ll -a" + alias lt="ll --tree --level=2 -a" +end + +if status is-interactive + # Commands to run in interactive sessions can go here +end diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..ee79420 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,89 @@ +ome tweaks to the status line +set -g status-right "%H:%M" +set -g window-status-current-style "underscore" + +# Scroll History +set -g history-limit 50000 + +# show messages for 4 seconds instead +set -g display-time 4000 + +# If running inside tmux ($TMUX is set), then change the status line to red +%if #{TMUX} +set -g status-bg red +%endif + +# Enable RGB colour if running in xterm(1) +set-option -sa terminal-overrides ",xterm*:Tc" + +# Change the default $TERM to tmux-256color +set -g default-terminal "tmux-256color" + +# No bells at all +set -g bell-action none + +# Keep windows around after they exit +set -g remain-on-exit on + +# Turn the mouse on, but without copy mode dragging +set -g mouse on + +# Some extra key bindings to select higher numbered windows +bind F1 selectw -t:10 +bind F2 selectw -t:11 +bind F3 selectw -t:12 +bind F4 selectw -t:13 +bind F5 selectw -t:14 +bind F6 selectw -t:15 +bind F7 selectw -t:16 +bind F8 selectw -t:17 +bind F9 selectw -t:18 +bind F10 selectw -t:19 +bind F11 selectw -t:20 +bind F12 selectw -t:21 + +# A key to toggle between smallest and largest sizes if a window is visible in +# multiple places +bind F set -w window-size + +# Keys to toggle monitoring activity in a window and the synchronize-panes option +bind m set monitor-activity +bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}' + +# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. +set -s escape-time 50 + +## Clipboard integration +# ctrl+c to send to clipboard +bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" +# ctrl+v to paste from clipboard +bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" + +# Selection with mouse should copy to clipboard right away, in addition to the default action. +unbind -n -Tcopy-mode-vi MouseDragEnd1Pane +bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel clipboard > /dev/null" + +# Middle click to paste from the clipboard +unbind-key MouseDown2Pane +bind-key -n MouseDown2Pane run " \ + X=$(xclip -o -sel clipboard); \ + tmux set-buffer \"$X\"; \ + tmux paste-buffer -p; \ + tmux display-message 'pasted!' \ +" + +# Drag to re-order windows +bind-key -n MouseDrag1Status swap-window -t= + +# set first window to index 1 (not 0) to map more to the keyboard layout +set-option -g renumber-windows on +set -g base-index 1 +setw -g pane-base-index 1 + +# Create a single default session - because a session is created here, tmux +# should be started with "tmux attach" rather than "tmux new" +new -d -s1 -nfish 'fish' +set -t1:1 monitor-activity on +set -t1:1 aggressive-resize on +neww -d +neww -d diff --git a/README.md b/README.md new file mode 100644 index 0000000..c465a2e --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# xzeldon's dotfiles