mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
updates
This commit is contained in:
parent
a656e5d65c
commit
b3c1cb4ce9
8 changed files with 1772 additions and 244 deletions
1
.p10k-bak-04-22.zsh
Symbolic link
1
.p10k-bak-04-22.zsh
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/Users/peter/.p10k.zsh
|
||||||
1730
.p10k.zsh~
Normal file
1730
.p10k.zsh~
Normal file
File diff suppressed because it is too large
Load diff
225
.tmux.conf
225
.tmux.conf
|
|
@ -1,225 +0,0 @@
|
||||||
##########################
|
|
||||||
### from internets
|
|
||||||
##########################
|
|
||||||
|
|
||||||
# From https://github.com/eduncan911/dotfiles/blob/master/.tmux.conf
|
|
||||||
bind-key -n M-0 select-window -t 0
|
|
||||||
bind-key -n M-1 select-window -t 1
|
|
||||||
bind-key -n M-2 select-window -t 2
|
|
||||||
bind-key -n M-3 select-window -t 3
|
|
||||||
|
|
||||||
# macOS fix for clipboard, vim/nvim, tmux and iterm2 (yikes)
|
|
||||||
if-shell "uname | grep -q Darwin" "set -g default-shell $SHELL"
|
|
||||||
if-shell "uname | grep -q Darwin" "set -g default-command \"reattach-to-user-namespace -l ${SHELL}\""
|
|
||||||
|
|
||||||
# From https://superuser.com/a/552493/393361
|
|
||||||
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
|
||||||
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
|
|
||||||
|
|
||||||
# From https://superuser.com/questions/813661/how-to-configure-tmux-iterm-to-display-session-name-as-title-in-terminal-tab
|
|
||||||
set-option -g set-titles on
|
|
||||||
|
|
||||||
# from https://github.com/tmux-plugins/tmux-continuum/issues/30
|
|
||||||
# set -g set-titles-string '#h ❐ #S ● #I #W'
|
|
||||||
|
|
||||||
set -g display-panes-time 800 # slightly longer pane indicators display time
|
|
||||||
set -g display-time 1000 # slightly longer status messages display time
|
|
||||||
|
|
||||||
# disable status bar - PSK - it's handy actually to tell if you're in tmux
|
|
||||||
# or not.
|
|
||||||
# set -g status off
|
|
||||||
|
|
||||||
# nifty way to hide pane and bring it back
|
|
||||||
bind-key ! break-pane -d -n _hidden_pane
|
|
||||||
bind-key @ join-pane -s $.1
|
|
||||||
|
|
||||||
##########################
|
|
||||||
### from https://github.com/thoughtbot/dotfiles/blob/master/tmux.conf
|
|
||||||
##########################
|
|
||||||
|
|
||||||
set -g default-terminal 'screen-256color'
|
|
||||||
# renumber windows sequentially after closing any of them
|
|
||||||
set -g renumber-windows on
|
|
||||||
|
|
||||||
|
|
||||||
# soften status bar color from harsh green to light gray
|
|
||||||
set -g status-style bg='#262626',fg='#a1cfd1'
|
|
||||||
|
|
||||||
# set status bg to grey from https://protechnotes.com/comprehensive-tmux-tutorial-for-beginners-with-a-cheat-sheet/
|
|
||||||
set -g status-bg colour236
|
|
||||||
|
|
||||||
# remove administrative debris (session name, hostname, time) in status bar
|
|
||||||
#set -g status-left ''
|
|
||||||
#set -g status-right ''
|
|
||||||
|
|
||||||
# increase scrollback lines
|
|
||||||
set -g history-limit 10000
|
|
||||||
|
|
||||||
# Local config
|
|
||||||
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local'
|
|
||||||
|
|
||||||
##########################
|
|
||||||
# From https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/zsh-navigation-tools
|
|
||||||
##########################
|
|
||||||
bind h run-shell -b "~/.oh-my-zsh/plugins/zsh-navigation-tools/znt-tmux.zsh"
|
|
||||||
|
|
||||||
##########################
|
|
||||||
### From https://pragprog.com/titles/bhtmux2/tmux-2/
|
|
||||||
##########################
|
|
||||||
# Our .tmux.conf file
|
|
||||||
|
|
||||||
# Setting the prefix from C-b to C-a
|
|
||||||
set -g prefix C-s
|
|
||||||
# Free the original Ctrl-b prefix keybinding
|
|
||||||
unbind C-b
|
|
||||||
#setting the delay between prefix and command
|
|
||||||
set -s escape-time 1
|
|
||||||
# Ensure that we can send Ctrl-S to other apps
|
|
||||||
bind C-s send-prefix
|
|
||||||
|
|
||||||
# Set the base index for windows to 1 instead of 0
|
|
||||||
set -g base-index 1
|
|
||||||
|
|
||||||
# Set the base index for panes to 1 instead of 0
|
|
||||||
setw -g pane-base-index 1
|
|
||||||
|
|
||||||
|
|
||||||
##########################
|
|
||||||
# From https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
|
|
||||||
##########################
|
|
||||||
|
|
||||||
# split panes using | and -
|
|
||||||
bind | split-window -h
|
|
||||||
bind - split-window -v
|
|
||||||
unbind '"'
|
|
||||||
unbind %
|
|
||||||
|
|
||||||
|
|
||||||
# moving between panes with Prefix h,j,k,l
|
|
||||||
bind h select-pane -L
|
|
||||||
bind j select-pane -D
|
|
||||||
bind k select-pane -U
|
|
||||||
bind l select-pane -R
|
|
||||||
|
|
||||||
# Set the default terminal mode to 256color mode
|
|
||||||
set -g default-terminal "screen-256color"
|
|
||||||
|
|
||||||
# trying to stop tmux (tmux) being overwritten/corrupted
|
|
||||||
# commented out cos gives 'no current session'.
|
|
||||||
# set allow-rename off
|
|
||||||
|
|
||||||
# https://tmuxcheatsheet.com/tmux-plugins-tools/?full_name=tmux-plugins%2Ftmux-prefix-highlight
|
|
||||||
set -g @prefix_highlight_show_copy_mode 'on'
|
|
||||||
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # default is 'fg=default,bg=yellow'
|
|
||||||
set -g @prefix_highlight_show_sync_mode 'on'
|
|
||||||
set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green' # default is 'fg=default,bg=yellow'
|
|
||||||
|
|
||||||
# Center the window list in the status line
|
|
||||||
set -g status-justify centre
|
|
||||||
|
|
||||||
# enable activity alerts
|
|
||||||
setw -g monitor-activity on
|
|
||||||
set -g visual-activity on
|
|
||||||
# reload config file (change file location to your the tmux.conf you want to use)
|
|
||||||
bind r source-file ~/.tmux.conf
|
|
||||||
|
|
||||||
# switch panes using Alt-arrow without prefix
|
|
||||||
bind -n M-Left select-pane -L
|
|
||||||
bind -n M-Right select-pane -R
|
|
||||||
bind -n M-Up select-pane -U
|
|
||||||
bind -n M-Down select-pane -D
|
|
||||||
|
|
||||||
# Enable mouse mode (tmux 2.1 and above)
|
|
||||||
set -g mouse on
|
|
||||||
set-option -g mouse on
|
|
||||||
|
|
||||||
setw -g automatic-rename on # rename window to reflect current program
|
|
||||||
# renumber windows when a window is closed
|
|
||||||
set -g renumber-windows on
|
|
||||||
|
|
||||||
######################
|
|
||||||
### DESIGN CHANGES ###
|
|
||||||
######################
|
|
||||||
|
|
||||||
# loud or quiet?
|
|
||||||
set -g visual-activity off
|
|
||||||
set -g visual-bell off
|
|
||||||
set -g visual-silence off
|
|
||||||
setw -g monitor-activity off
|
|
||||||
set -g bell-action none
|
|
||||||
|
|
||||||
# modes
|
|
||||||
setw -g clock-mode-colour colour5
|
|
||||||
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
|
||||||
|
|
||||||
# panes
|
|
||||||
set -g pane-border-style 'fg=colour19 bg=colour0'
|
|
||||||
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
|
||||||
|
|
||||||
# ——————— Continuum ———————
|
|
||||||
# https://github.com/tmux-plugins/tmux-continuum
|
|
||||||
set -g @continuum-restore 'on'
|
|
||||||
set -g @continuum-boot 'on'
|
|
||||||
set -g @continuum-boot-options 'iterm'
|
|
||||||
|
|
||||||
# From https://github.com/tmux-plugins/tmux-continuum/issues/30
|
|
||||||
set -g @continuum-save-interval '1'
|
|
||||||
set -g @continuum-boot-options 'iterm,fullscreen'
|
|
||||||
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
|
|
||||||
|
|
||||||
# https://github.com/tmux-plugins/tmux-resurrect
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
||||||
|
|
||||||
# From https://github.com/tmux-plugins/tmux-continuum/blob/master/docs/automatic_start.md
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-sidebar'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-open'
|
|
||||||
# ——————— Continuum ———————
|
|
||||||
|
|
||||||
# statusbar
|
|
||||||
set -g status-position bottom
|
|
||||||
set -g status-justify left
|
|
||||||
# Status line right side - 31-Oct 13:37
|
|
||||||
#set -g status-right "#[fg=cyan]%d %b %R"
|
|
||||||
|
|
||||||
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
|
||||||
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
|
||||||
|
|
||||||
#setw -g window-status-style 'fg=colour9 bg=colour18'
|
|
||||||
#setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
|
||||||
|
|
||||||
# setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
|
||||||
|
|
||||||
# Status line left side to show Session:window:pane
|
|
||||||
set -g status-left-length 40
|
|
||||||
set -g status-left "#{prefix_highlight} #[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
|
|
||||||
|
|
||||||
# Update the status line every sixty seconds
|
|
||||||
set -g status-interval 5
|
|
||||||
|
|
||||||
# messages
|
|
||||||
#set -g message-style 'fg=colour232 bg=colour16 bold'
|
|
||||||
|
|
||||||
# https://github.com/jonmosco/kube-tmux.git
|
|
||||||
# set -g status-right-length 80 # long enough for our long cluster names
|
|
||||||
# set -g status-right "#(/bin/bash $HOME/.tmux/kube-tmux/kube.tmux 250 red cyan)"
|
|
||||||
|
|
||||||
##########################
|
|
||||||
# PLUGINS
|
|
||||||
# From https://github.com/tmux-plugins/tpm
|
|
||||||
# List of plugins
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
||||||
set -g @plugin 'jimeh/tmux-themepack'
|
|
||||||
set -g @themepack 'powerline/block/blue'
|
|
||||||
|
|
||||||
# Other examples:
|
|
||||||
# set -g @plugin 'github_username/plugin_name'
|
|
||||||
# set -g @plugin 'git@github.com:user/plugin'
|
|
||||||
# set -g @plugin 'git@bitbucket.com:user/plugin'
|
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
|
||||||
# run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
|
|
||||||
##########################
|
|
||||||
1
.tmux.conf
Symbolic link
1
.tmux.conf
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/Users/peter/.tmux.conf
|
||||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"python.testing.promptToConfigure": false,
|
||||||
|
"python.testing.pytestEnabled": false,
|
||||||
|
"python.testing.unittestEnabled": false,
|
||||||
|
"python.testing.nosetestsEnabled": false
|
||||||
|
}
|
||||||
25
alias-ls.sh
25
alias-ls.sh
|
|
@ -17,10 +17,27 @@
|
||||||
|
|
||||||
# NEW SKOOL LS ALIASES
|
# NEW SKOOL LS ALIASES
|
||||||
######################
|
######################
|
||||||
COMMON_EXA_PARAMS=" --long --all --header --icons "
|
# TODO alias lgr="exa $COMMON_EXA_PARAMS | grep -Ei 'Permissions Size|;'
|
||||||
|
COMMON_EXA_PARAMS=" --long --header --icons --git --all "
|
||||||
alias l="exa $COMMON_EXA_PARAMS --group --group-directories-first --time-style long-iso --git --git-ignore"
|
alias l="exa $COMMON_EXA_PARAMS --group --group-directories-first --time-style long-iso --git --git-ignore"
|
||||||
alias ls1="exa --oneline $COMMON_EXA_PARAMS --group-directories-first"
|
alias ls1="exa $COMMON_EXA_PARAMS --oneline --group-directories-first"
|
||||||
alias ls-tree="exa $COMMON_EXA_PARAMS --tree"
|
alias ls-tree="exa $COMMON_EXA_PARAMS --tree"
|
||||||
alias lrt="exa $COMMON_EXA_PARAMS --sort newest"
|
alias lrt="exa $COMMON_EXA_PARAMS --sort newest"
|
||||||
alias lsd="exa $COMMON_EXA_PARAMS --only-dirs"
|
alias lsd="exa $COMMON_EXA_PARAMS --only-dirs"
|
||||||
# TODO alias lgr="exa $COMMON_EXA_PARAMS | grep -Ei 'Permissions Size|;'
|
|
||||||
|
# PSK 07-09-2022 undoing exa as it's hanging for ages on attached volumes
|
||||||
|
alias exa-default="exa $COMMON_EXA_PARAMS"
|
||||||
|
alias l="exa-default "
|
||||||
|
alias lf="exa-default | grep -v /" # list files only
|
||||||
|
alias lgr='l | grep -i ' # ls grep
|
||||||
|
alias lhx="ls ~"
|
||||||
|
alias list-aliases=n-aliases # wot about my aliases?
|
||||||
|
alias list-functions=n-functions # wot about my functions?
|
||||||
|
alias list-javas="l ~/.jenv/versions" # where the fuck is my javas?
|
||||||
|
alias list-themes="cat ${HOME}/.zsh_favlist" # oh-my-zsh stuff
|
||||||
|
alias ll="exa-default -t modified | tail -1" # list last file
|
||||||
|
alias lla='ls -lat'
|
||||||
|
alias llf="clf"
|
||||||
|
alias lock="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
|
||||||
|
alias lsf="ls -p | grep -v /" # list files only
|
||||||
|
alias lt="ll" # list last file
|
||||||
|
|
|
||||||
13
aliases.sh
13
aliases.sh
|
|
@ -5,18 +5,18 @@ alias all-aliases=n-aliases
|
||||||
alias bmake="today-time && make "
|
alias bmake="today-time && make "
|
||||||
alias brew-x86="/usr/local/homebrew/bin/brew"
|
alias brew-x86="/usr/local/homebrew/bin/brew"
|
||||||
alias cerebro="/usr/local/cerebro-0.9.4/bin/cerebro"
|
alias cerebro="/usr/local/cerebro-0.9.4/bin/cerebro"
|
||||||
|
alias clf="exa-default -t modified | tail -1 | xargs less" # cat the last file
|
||||||
alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
|
alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
|
||||||
alias crontab="EDITOR=vi \crontab" # This is because code editing crontab doesn't work
|
alias crontab="EDITOR=vi \crontab" # This is because code editing crontab doesn't work
|
||||||
alias egr='env | sort | grep -i '
|
alias egr='env | sort | grep -i '
|
||||||
alias envgr='env | sort | grep -i '
|
alias envgr='env | sort | grep -i '
|
||||||
alias errorsx="^FATA|^ERR|^WAR|^FAIL"
|
alias errorsx="^FATA|^ERR|^WAR|^FAIL"
|
||||||
alias errx="^FATA|^ERR|^WAR|^FAIL"
|
alias errx="^FATA|^ERR|^WAR|^FAIL"
|
||||||
# PSK 07-09-2022 undoing exa as it's hanging for ages on attached volumes
|
alias fdd='\fd -t d -uu -i -L ' # find directories
|
||||||
alias fdd='\fd -t d -uu -i -L ' # find directories
|
alias fdda="fd -t d -H -uu -i --no-ignore-vcs -I -L " # find directories in horrible places
|
||||||
alias fda="fd -t d -H -uu -i --no-ignore-vcs -I -L " # find directories in horrible places
|
alias fdir='\fd -t d -uu -i -L ' # find directories
|
||||||
alias fdir='\fd -t d -uu -i -L ' # find directories
|
alias ff='fd -t f -uu -i -L ' # find files
|
||||||
alias ff='fd -t f -uu -i -L ' # find files
|
alias ffa="fd -t f -H -uu -i --no-ignore-vcs -I -L " # find files in horrible places
|
||||||
alias ffa="fd -t f -H -uu -i --no-ignore-vcs -I -L " # find files in horrible places
|
|
||||||
alias ftp-DS="sftp -P 699 pskadmin@ds718-psk.synology.me"
|
alias ftp-DS="sftp -P 699 pskadmin@ds718-psk.synology.me"
|
||||||
alias functions-n=n-functions
|
alias functions-n=n-functions
|
||||||
alias g="google"
|
alias g="google"
|
||||||
|
|
@ -67,6 +67,7 @@ alias timer="termdown"
|
||||||
alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
|
alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
|
||||||
alias yoink="open -a Yoink"
|
alias yoink="open -a Yoink"
|
||||||
alias z="vscode ~/.zshrc"
|
alias z="vscode ~/.zshrc"
|
||||||
|
# alias ls="exa --header --git -1 --long"
|
||||||
# WARNING: these might balls things up
|
# WARNING: these might balls things up
|
||||||
# alias cat="bat"
|
# alias cat="bat"
|
||||||
# alias man="batman"
|
# alias man="batman"
|
||||||
|
|
|
||||||
|
|
@ -632,9 +632,6 @@ function peco-files() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include Work funcs
|
|
||||||
# . $HOME/.oh-my-zsh/rune-shell-funcs.zsh
|
|
||||||
|
|
||||||
zle -N peco-directories
|
zle -N peco-directories
|
||||||
bindkey '^Xf' peco-directories
|
bindkey '^Xf' peco-directories
|
||||||
zle -N peco-files
|
zle -N peco-files
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# ls, the common ones I use a lot shortened for rapid fire usage
|
# ls, the common ones I use a lot shortened for rapid fire usage
|
||||||
alias l='ls -lFh' #size,show type,human readable
|
alias l='ls -lFh' #size,show type,human readable
|
||||||
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
||||||
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
||||||
alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
|
alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
|
||||||
alias ll='ls -l' #long list
|
alias ll='ls -l' #long list
|
||||||
alias ldot='ls -ld .*'
|
alias ldot='ls -ld .*'
|
||||||
alias lS='ls -1FSsh'
|
alias lS='ls -1FSsh'
|
||||||
alias lart='ls -1Fcart'
|
alias lart='ls -1Fcart'
|
||||||
|
|
@ -36,7 +36,7 @@ alias -g P="2>&1| pygmentize -l pytb"
|
||||||
|
|
||||||
alias dud='du -d 1 -h'
|
alias dud='du -d 1 -h'
|
||||||
alias duf='du -sh *'
|
alias duf='du -sh *'
|
||||||
(( $+commands[fd] )) || alias fd='find . -type d -name'
|
(($ + commands[fd])) || alias fd='find . -type d -name'
|
||||||
alias ff='find . -type f -name'
|
alias ff='find . -type f -name'
|
||||||
|
|
||||||
alias h='history'
|
alias h='history'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue