Compare commits

...

41 Commits

Author SHA1 Message Date
psox 1bd880676c tmux: add ctrl-shift-movement 2022-09-29 16:39:29 +01:00
psox 7c50a5acd6 update formatting 2022-09-16 12:02:52 +01:00
psox d31c1c8a8e recursive update 2022-09-16 11:54:18 +01:00
psox 32144ad5d5 fix grep error 2022-09-16 11:41:33 +01:00
psox 8a5f61b47f finish merge 2022-09-13 20:05:51 +01:00
psox 9fbd124ee0 Merge branch 'develop' into psox/arch 2022-09-13 20:04:45 +01:00
pSox b1ea115f31 ci: merge new lua config 2022-08-02 10:21:42 +01:00
pSox e2df4d1e48 Merge remote-tracking branch 'origin/develop' into psox/arch 2022-08-02 10:14:09 +01:00
psox 663e4ece08 set nolist on leader-N 2022-06-06 11:19:34 +01:00
psox eadc268fe6 set go ts 2022-06-06 10:34:21 +01:00
psox cdc44a9df9 update add zoxide support 2022-05-17 10:22:41 +01:00
psox aabf03d69b merge some local tmux config changes to git 2022-05-06 13:37:23 +01:00
psox 53f8ad5c2c Fix changes to zshrc 2022-04-05 14:28:18 +01:00
psox 5f0eda8bae Update sub-modules 2022-04-05 14:20:31 +01:00
psox c434926442 add suuport for bat as man reader 2021-12-22 14:17:52 +00:00
psox 091de18feb fix paru entry 2021-11-29 15:34:10 +00:00
psox db33642b75 added support keys.conf to tmux 2021-11-06 13:25:44 +00:00
psox 2b523a19f2 fix copy bug in zshrc 2021-11-04 15:59:05 +00:00
psox e561295485 fix fragments folder 2021-11-04 15:24:24 +00:00
psox 85ec09df86 consolodate with develop 2021-11-04 15:12:19 +00:00
psox b6adf06830 consolodate with develop 2021-11-04 15:11:58 +00:00
psox 29a95ec965 fix src for omz updates 2021-11-01 10:42:23 +00:00
psox 6f8d3e06ef Latest submodule updates and support for paru 2021-11-01 10:30:15 +00:00
psox b641630b18 Latest submodule updates 2021-08-08 21:02:04 +01:00
psox 8a2f11d866 Merge remote-tracking branch 'origin/develop' into psox/arch 2021-08-08 20:57:01 +01:00
psox 0aa8fdde46 Added support for starship and did some cleanup 2021-07-22 20:27:21 +01:00
psox 8539579b65 fix problem with xhost 2021-07-08 16:37:58 +01:00
psox a7b7ef5401 make grep quiet 2021-07-07 10:43:47 +01:00
psox d4ef219b73 get latest from develop 2021-07-07 10:41:36 +01:00
psox 67a0b2e147 Latest submodule updates 2021-04-25 12:30:44 +01:00
psox 6fab471628 Merge remote-tracking branch 'origin/develop' into psox/arch 2021-04-25 12:25:47 +01:00
psox c2018cb742 Latest submodule updates 2021-04-02 11:32:44 +00:00
root 1a8e70fe0f added ~/.local/bin to path 2020-12-18 13:22:42 +00:00
psox 08a8946fdc Latest Updates 2020-12-13 14:20:43 +00:00
psox aa8fa4ed6e Merge branch 'develop' into psox/arch 2020-12-10 10:28:51 +00:00
psox 570ca8d8b4 added 10k 2020-11-12 15:37:51 +00:00
psox cca71f6735 latest changes 2020-11-02 16:38:12 +00:00
psox 743555992c latest changes 2020-11-02 16:35:23 +00:00
psox 8643f5585b latest changes 2020-10-30 23:43:47 +00:00
psox bd2878fe91 latest changes 2020-10-29 11:46:05 +00:00
psox e91859c988 Updates and more 2020-09-24 13:19:59 +00:00
10 changed files with 95 additions and 101 deletions

View File

@ -1,23 +0,0 @@
set-option -g prefix C-a
bind-key C-a last-window
bind-key a send-prefix
#set -g mode-mouse off
#set -g mouse-resize-pane off
#set -g mouse-select-pane off
#set -g mouse-select-window off
set -g base-index 1
set -s escape-time 0
setw -g aggressive-resize on
setw -g monitor-activity on
set -g visual-activity on
set -g status-left ' #[fg=blue,bold]#h #S:#I.#P (#D) #[default]'
set -g status-right '#T #[fg=yellow,bold]#(uptime | cut -d, -f4 | cut -d " " -f 4-7)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default] '
set -g status-fg '#EEEEEE'
set -g status-bg '#333333'
set -g set-titles on
bind-key e set-window-option synchronize-panes on
bind-key E set-window-option synchronize-panes off
bind m set -g mode-mouse on \; set -g mouse-resize-pane on \; set -g mouse-select-pane on \; set -g mouse-select-window on \; display 'Mouse: ON'
bind M set -g mode-mouse off \; set -g mouse-resize-pane off \; set -g mouse-select-pane off \; set -g mouse-select-window off \; display 'Mouse: OFF'
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom

View File

@ -1,52 +0,0 @@
set guifont=Fira\ Code\ 11
set encoding=utf-8
set nocompatible
colorscheme murphy
syntax on
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
" Uncomment the following to have Vim load indentation rules according to the
" detected filetype. Per default Debian Vim only load filetype specific
" plugins.
if has("autocmd")
filetype indent on
endif
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set smartcase " Do smart case matching
set incsearch " Incremental search
set ww=b,s,<,>,[,]
set sta
set visualbell
set mousemodel=popup_setpos
highlight SpellErrors ctermfg=Red guifg=Red cterm=underline gui=underline term=reverse
let spell_language_list = "americanxlg,american,americanmed+,english"
let spell_insert_mode = 1
let spell_executable = "ispell"
let spell_auto_type = ""
"let spell_auto_type = "tex,mail,text,html,sgml,otl,cvs,none"
" other
set shiftwidth=2
set tabstop=8
set softtabstop=2
set expandtab
filetype plugin indent on
autocmd FileType yaml setl indentkeys-=<:>
autocmd FileType yaml setlocal ts=8 sts=2 sw=2 expandtab
set modeline
set modelines=7
" vim: syntax=vim

@ -1 +1 @@
Subproject commit 1448d234d6d9c25f64a48b16379b34db28a36898
Subproject commit 7dcabbe6826073ef6069c8a4b6f9a943f00d2df0

View File

@ -0,0 +1,33 @@
# This fragmenet is meant to be used with a Vim plugin and provides unified movement
# between Vim window/panes and tmux panes. It requires you install the following in
# Vim to function correctly:
#
# github.com/christoomey/vim-tmux-navigator
#
# Include it by adding the following snippet to your early (or late) tmux.conf:
#
# source-file "$PSOXIZSH/tmux/fragment/ctrl-shift-movement.conf"
### --- This uses Ctrl-Shift-<arrow> movement --- ###
# Integration with vim-tmux-navigator & fzf
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
bind -n C-S-Left run "($is_vim && tmux send-keys C-S-Left) \
|| tmux select-pane -L"
bind -n C-S-Down run "($is_vim && tmux send-keys C-S-Down) \
|| ($is_fzf && tmux send-keys C-S-Down) \
|| tmux select-pane -D"
bind -n C-S-Up run "($is_vim && tmux send-keys C-S-Up) \
|| ($is_fzf && tmux send-keys C-S-Up) \
|| tmux select-pane -U"
bind -n C-S-Right run "($is_vim && tmux send-keys C-S-Right) \
|| tmux select-pane -R"
bind-key -T copy-mode-vi 'C-S-Left' select-pane -L
bind-key -T copy-mode-vi 'C-S-Down' select-pane -D
bind-key -T copy-mode-vi 'C-S-Up' select-pane -U
bind-key -T copy-mode-vi 'C-S-Right' select-pane -R

@ -1 +1 @@
Subproject commit 693e5a2a0f6acfd2666882655d5dfd32e8c6c50b
Subproject commit b699a7e01c253ffb7818b02d62bce24190ec1019

View File

@ -8,6 +8,10 @@ if "test -f ~/.config/tmux/early.conf" {
source-file ~/.config/tmux/early.conf
}
if "test -f ~/.config/tmux/keys.conf" {
source-file ~/.config/tmux/keys.conf
}
set-option -g prefix C-a
set-option -g set-titles on
set-window-option -g automatic-rename on
@ -16,6 +20,7 @@ bind-key a send-prefix
set -g status-fg '#EEEEEE'
set -g status-bg '#333333'
set -g pane-border-status top
set -g pane-border-format '╢#[fg=#AA2277,italics]#{session_group}#[default] #[fg=#337755,bold,normal]#P/#D #[default,italics,fg=yellow]#{pane_tty}#[default]╟'
set -g display-panes-colour '#334400'
set -g mouse off
set -s escape-time 0
@ -23,14 +28,21 @@ set -g visual-activity on
set -g status-left-length 200
set -g status-right-length 200
set -g status-left '#{prefix_highlight} #[fg=blue,bold]#h #S:#I.#P (#D) #[default]'
set -g status-right '#T #[fg=yellow,bold]#(uptime -p)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default] '
set -g status-right '#T #[fg=yellow,bold]#( awk "{print \$1/86400,\"days\"}" /proc/uptime )#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default] '
set -g set-titles on
setw -g aggressive-resize on
setw -g monitor-activity on
# The following three makes italics work in tmux
set -g xterm-keys on
set -g default-terminal "xterm-256color"
set -g default-terminal "tmux-256color"
# set 24bit color for terminal that support it
set -as terminal-overrides ',xterm*:sitm=\E[3m'
set -as terminal-overrides ",xterm*:Tc"
set -as terminal-overrides ",alacritty*:Tc"
set -as terminal-overrides ",tmux-*:Tc"
# Refresh status line every 5 seconds
set -g status-interval 5
@ -43,8 +55,12 @@ bind-key e set-window-option synchronize-panes on
bind-key E set-window-option synchronize-panes off
bind m set -g mouse on \; display 'Mouse: ON'
bind M set -g mouse off \; display 'Mouse: OFF'
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \
\; swap-pane -s tmux-zoom.0 \
\; select-window -t tmux-zoom
bind - last-window \
\; swap-pane -s tmux-zoom.0 \
\; kill-window -t tmux-zoom
# prefix + / to search
bind-key / copy-mode \; send-key ?
@ -55,3 +71,4 @@ if "test -f ~/.config/tmux/late.conf" {
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b "$TMUX_PLUGINS/tpm/tpm"

6
vimrc
View File

@ -230,7 +230,7 @@ let g:rainbow_active = 1
augroup PsoxFileAutos
autocmd!
autocmd FileType yaml setlocal indentkeys-=<:> ts=8 sts=2 sw=2 expandtab
autocmd FileType go setlocal ts=8 sts=4 sw=4 noexpandtab
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
\| autocmd BufWritePre <buffer> silent :call CocAction('format')
" Tidy nerdtree windiw
autocmd FileType nerdtree setlocal nocursorcolumn nonumber norelativenumber signcolumn=no
@ -419,9 +419,9 @@ nnoremap <silent> <leader>N :call ToggleGutter()<CR>
function! ToggleGutter() abort
if &number
exec "set nonumber norelativenumber signcolumn=no"
exec "set nonumber norelativenumber signcolumn=no nolist"
else
exec "set number relativenumber"
exec "set number relativenumber list"
try | set signcolumn=auto | catch | set signcolumn=yes:1 | endtry
endif
endfunction

@ -1 +1 @@
Subproject commit bebaa6126ede6bda698a6788c6cf3fa02ff1679c
Subproject commit acd4de5268ee23ffa3ec1f6f13a2ec91266e1564

@ -1 +1 @@
Subproject commit 1a9264bc661b3d52756916bf9ec3f41687d64db2
Subproject commit caa749d030d22168445c4cb97befd406d2828db0

41
zshrc
View File

@ -78,14 +78,18 @@ plugins=(
common-aliases
colored-man-pages
)
( which git &>/dev/null ) && plugins+=( git git-extras git-flow-avh ) && [[ "$ZSH_THEME" == "stemmet" ]] && [ -z "$_STARSHIP_Y_" ] && plugins+=( git-prompt )
( which git &>/dev/null ) &&
plugins+=( git git-extras git-flow-avh ) &&
[[ "$ZSH_THEME" == "stemmet" ]] &&
[ -z "$_STARSHIP_Y_" ] &&
plugins+=( git-prompt )
( which perl &>/dev/null ) && plugins+=( perl )
( which go &>/dev/null ) && plugins+=( golang )
( which oc &>/dev/null ) && plugins+=( oc )
( which rsync &>/dev/null ) && plugins+=( rsync )
( which aws &>/dev/null ) && plugins+=( aws )
( which rust &>/dev/null ) && plugins+=( rust )
( which cargo &>/dev/null ) && plugins+=( cargo )
( which cargo &>/dev/null ) && plugins+=( rust )
( which jq &>/dev/null ) && plugins+=( jsontools )
( which encode64 &>/dev/null ) && plugins+=( encode64 )
( which docker-compose &>/dev/null ) && plugins+=( docker-compose )
@ -100,10 +104,16 @@ plugins=(
( which code &>/dev/null ) && plugins+=( vscode )
( which strfile &>/dev/null ) && plugins+=( chucknorris )
( which kubectl &>/dev/null ) && plugins+=( kubectl )
( which kubectx &>/dev/null ) && plugins+=( kubectx )
( which chroma &>/dev/null ) && plugins+=( colorize )
( which kate &>/dev/null ) && plugins+=( kate )
( which zoxide &>/dev/null ) && plugins+=( zoxide )
( [[ -e /etc/arch-release ]] ) && plugins+=( archlinux )
( [[ -e /etc/ubuntu-release ]] ) && plugins+=( ubuntu )
( [[ -e /etc/debian-release ]] ) && plugins+=( debian )
( [[ -e /etc/suse-release ]] ) && plugins+=( suse )
( [[ "$(uname)" == "Darwin" ]] ) && plugins+=( macos )
#( which vim &>/dev/null ) && plugins+=( vim-interaction )
( which vim &>/dev/null ) && plugins+=( vim-interaction )
( which ssh &>/dev/null ) && [[ -d ~/.ssh ]] && plugins+=( ssh-agent )
plugins+=(
zsh-completions
@ -120,7 +130,7 @@ then
export VIMHOME=~/.vim
# Feature flag lua based Neovim config, until this is tested
# (and we figure out how to detect if we're running nvim or vim)
# (and we figure out how to detect if we are running nvim or vim)
if [[ -n ${PSOXIZSH_EXPERIMENTAL_NEOVIM_LUA} ]]
then
export MYVIMRC=$PSOXIZSH/init.lua
@ -163,15 +173,22 @@ then
[ -z "$TMUX_PATH" ] && TMUX_PATH=~/.config/tmux
# Bootstrap the user's plugin directory, if required
[ -d "$TMUX_PATH/plugins" ] || { mkdir -vp "$TMUX_PATH/plugins" && cp -r "$PSOXIZSH/tmux/plugins" "$TMUX_PATH/plugins" }
# Bootstrap the users plugin directory, if required
[ -d "$TMUX_PATH/plugins" ] || {
mkdir -vp "$TMUX_PATH/plugins" &&
cp -r "$PSOXIZSH/tmux/plugins" "$TMUX_PATH/plugins"
}
# Both tmux and TPM are very opininated about where configs must live,
# and TPM will only expand one layer of source-file directives, so we
# symlink the base config to the user local config file, if it doesn't
# symlink the base config to the user local config file, if it does not
# exist.
[ ! -f ~/.tmux.conf ] && ln -s $PSOXIZSH/tmux/tmux.conf ~/.tmux.conf
[ ! -f "$TMUX_PATH/plugins.conf" ] && ln -s "$PSOXIZSH/tmux/fragment/plugins.conf" "$TMUX_PATH/plugins.conf"
[[ ! -f $TMUX_PATH/tmux.conf ]] && cp -r "$PSOXIZSH/tmux/tmux.conf" "$TMUX_PATH/tmux.conf"
[[ ! -f ~/.tmux.conf ]] && ln -s $PSOXIZSH/tmux/tmux.conf ~/.tmux.conf
[[ ! -f "$TMUX_PATH/plugins.conf" ]] && ln -vs "$PSOXIZSH/tmux/fragment/plugins.conf" "$TMUX_PATH/plugins.conf"
[[ "$USER" == "astemmet" ]] && [[ ! -f $TMUX_PATH/keys.conf ]] && {
cp -v "$PSOXIZSH/tmux/fragment/ctrl-alt-movement.conf" "$TMUX_PATH/keys.conf"
}
export TMUX_PATH=$TMUX_PATH TMUX_PLUGINS="$TMUX_PATH/plugins" TMUX_CONFIG=~/.tmux.conf
fi
@ -190,6 +207,8 @@ which nvim >/dev/null 2>&1 && alias vim="$(which nvim)"
alias v=vim
[[ -x /usr/bin/yay ]] && [[ "$(whoami)" != "pacman" ]] && alias yay='sudo -iupacman /usr/bin/yay'
[[ -x /usr/bin/paru ]] && [[ "$(whoami)" != "pacman" ]] && alias yay='sudo -iupacman /usr/bin/paru'
[[ -x /usr/bin/paru ]] && [[ "$(whoami)" != "pacman" ]] && alias paru='sudo -iupacman /usr/bin/paru'
[[ -x /usr/bin/bat ]] && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
typeset -A key
@ -252,7 +271,7 @@ fi
alias src='omz reload'
# Remove unwanted aliases
( where fd | grep -qE '\/s?bin\/fd' ) && alias fd &>/dev/null && unalias fd
( where fd | grep -qE '/s?bin/fd' ) && alias fd &>/dev/null && unalias fd
# Clean up global aliases
source <(alias -g | awk -F= '/^[A-Za-z]+/{print $1}' | xargs -I{} -n1 echo unalias "'{}'")