initial import
This commit is contained in:
commit
1aa7562796
61
config/htop/htoprc
Normal file
61
config/htop/htoprc
Normal file
|
@ -0,0 +1,61 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
htop_version=3.2.0
|
||||
config_reader_min_version=3
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=1
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
show_program_path=0
|
||||
highlight_base_name=1
|
||||
highlight_deleted_exe=1
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
highlight_changes=0
|
||||
highlight_changes_delay_secs=5
|
||||
find_comm_in_cmdline=1
|
||||
strip_exe_from_cmdline=1
|
||||
show_merged_command=0
|
||||
header_margin=1
|
||||
screen_tabs=1
|
||||
detailed_cpu_time=0
|
||||
cpu_count_from_one=0
|
||||
show_cpu_usage=1
|
||||
show_cpu_frequency=1
|
||||
show_cpu_temperature=1
|
||||
degree_fahrenheit=1
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=6
|
||||
enable_mouse=0
|
||||
delay=15
|
||||
hide_function_bar=0
|
||||
header_layout=two_50_50
|
||||
column_meters_0=CPU Memory Swap
|
||||
column_meter_modes_0=1 1 1
|
||||
column_meters_1=DiskIO NetworkIO ZFSARC
|
||||
column_meter_modes_1=2 2 2
|
||||
tree_view=0
|
||||
sort_key=46
|
||||
tree_sort_key=0
|
||||
sort_direction=-1
|
||||
tree_sort_direction=1
|
||||
tree_view_always_by_pid=0
|
||||
all_branches_collapsed=0
|
||||
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
|
||||
.sort_key=PERCENT_CPU
|
||||
.tree_sort_key=PID
|
||||
.tree_view=0
|
||||
.tree_view_always_by_pid=0
|
||||
.sort_direction=-1
|
||||
.tree_sort_direction=1
|
||||
.all_branches_collapsed=0
|
||||
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
|
||||
.sort_key=IO_RATE
|
||||
.tree_sort_key=PID
|
||||
.tree_view=0
|
||||
.tree_view_always_by_pid=0
|
||||
.sort_direction=-1
|
||||
.tree_sort_direction=1
|
||||
.all_branches_collapsed=0
|
5
gitconfig
Normal file
5
gitconfig
Normal file
|
@ -0,0 +1,5 @@
|
|||
[user]
|
||||
name = KemoNine
|
||||
email = kemonine@kemonine.info
|
||||
[credential]
|
||||
helper = store
|
37
restic.sh
Executable file
37
restic.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo /usr/local/bin/restic self-update
|
||||
sudo setcap cap_dac_read_search=+ep /usr/local/bin/restic
|
||||
|
||||
MACHINE=bubonic
|
||||
ZONE=root
|
||||
|
||||
export RESTIC_REPOSITORY=
|
||||
export RESTIC_PASSWORD=
|
||||
|
||||
/usr/local/bin/restic backup -v \
|
||||
--tag $MACHINE --tag $ZONE \
|
||||
/ \
|
||||
--exclude=/dev \
|
||||
--exclude=/run \
|
||||
--exclude=/tank \
|
||||
--exclude=/scratch \
|
||||
--exclude=/proc \
|
||||
--exclude=/sys \
|
||||
--exclude=/var/lib/docker \
|
||||
--exclude=/var/lib/lxcfs \
|
||||
--exclude=/var/lib/containers \
|
||||
--exclude=/mnt \
|
||||
--exclude=/var/run \
|
||||
--exclude=/tmp \
|
||||
--exclude=/var/tmp
|
||||
|
||||
/usr/local/bin/restic forget -v \
|
||||
--tag $MACHINE --tag $ZONE \
|
||||
--keep-daily=7 \
|
||||
--keep-weekly=4 \
|
||||
--keep-monthly=12 \
|
||||
--keep-yearly 1
|
||||
|
||||
# This can take a very, very long time
|
||||
/usr/local/bin/restic prune && /usr/local/bin/restic check
|
38
tmux.conf
Normal file
38
tmux.conf
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Misc/General
|
||||
set -g allow-rename on
|
||||
set -g pane-border-status bottom
|
||||
set -g editor nano
|
||||
set -g history-limit 100000
|
||||
set -g renumber-windows on
|
||||
set -g clock-mode-style 24
|
||||
set -g status-interval 5
|
||||
|
||||
# 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"
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
# If running inside tmux ($TMUX is set), then change the status line to warn user
|
||||
%if #{TMUX}
|
||||
set -g status-bg yellow
|
||||
%endif
|
||||
|
||||
# Status line/bar
|
||||
set -g status-right " #{?client_prefix,#[reverse]<Prefix>#[noreverse] ,} %H:%M %Y-%m-%d"
|
||||
set -g window-status-current-style "underscore"
|
121
zshrc
Normal file
121
zshrc
Normal file
|
@ -0,0 +1,121 @@
|
|||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# zplug
|
||||
source ~/.zplug/init.zsh
|
||||
zplug "zplug/zplug", hook-build:"zplug --self-manage"
|
||||
zplug "romkatv/powerlevel10k", as:theme, depth:1
|
||||
|
||||
zplug "popstas/zsh-command-time"
|
||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||
zplug "ytakahashi/igit"
|
||||
zplug "mbenford/zsh-tmux-auto-title"
|
||||
zplug "MichaelAquilina/zsh-you-should-use"
|
||||
|
||||
zplug "junegunn/fzf", from:github, as:command, rename-to:fzf, hook-build:"./install --all"
|
||||
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
|
||||
zplug "Aloxaf/fzf-tab", from:github
|
||||
zplug "alexiszamanidis/zsh-git-fzf"
|
||||
zplug "ddnexus/fm", hook-build:"./fm__compile"
|
||||
zplug "larkery/zsh-histdb"
|
||||
#zplug "m42e/zsh-histdb-fzf"
|
||||
zplug 'm42e/zsh-histdb-skim', from:github, at:main
|
||||
|
||||
zplug load
|
||||
|
||||
# zsh options
|
||||
autoload run-help
|
||||
setopt auto_pushd
|
||||
setopt clobber
|
||||
setopt complete_aliases
|
||||
setopt correct
|
||||
#setopt correct_all
|
||||
setopt extended_glob
|
||||
setopt extended_history
|
||||
setopt hash_list_all
|
||||
setopt hist_ignore_all_dups
|
||||
setopt hist_ignore_space
|
||||
setopt no_beep
|
||||
setopt no_hist_allow_clobber
|
||||
setopt no_rm_star_silent
|
||||
setopt notify
|
||||
setopt prompt_subst
|
||||
setopt pushd_ignore_dups
|
||||
setopt pushd_silent
|
||||
setopt pushd_to_home
|
||||
setopt rm_star_wait
|
||||
|
||||
export SAVEHIST=1000000
|
||||
export HISTSIZE=1000000
|
||||
export HISTFILE=~/.zsh_history
|
||||
setopt append_history
|
||||
setopt share_history
|
||||
|
||||
# zsh plugin options
|
||||
ZSH_COMMAND_TIME_MIN_SECONDS=10
|
||||
ZSH_TMUX_AUTO_TITLE_SHORT=true
|
||||
ZSH_TMUX_AUTO_TITLE_IDLE_TEXT="%last"
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'
|
||||
|
||||
# misc / general
|
||||
export EDITOR="nano"
|
||||
export PATH=~/.local/bin:${PATH}
|
||||
|
||||
. $HOME/.asdf/asdf.sh
|
||||
|
||||
alias docker="sudo docker"
|
||||
alias podman="sudo podman"
|
||||
|
||||
# local overrides
|
||||
test -f ~/.zshrc.local && source ~/.zshrc.local
|
||||
|
||||
# dont do anything more if non interactive
|
||||
if [[ ! -o interactive ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
# setup mode/status line for zsh
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
|
||||
# ensure histdb gets ctrl-r for history
|
||||
#bindkey '^R' histdb-fzf-widget
|
||||
#source ~/.zplug/repos/larkery/zsh-histdb/histdb-interactive.zsh
|
||||
#bindkey '^R' _histdb-isearch
|
||||
bindkey '^R' histdb-skim-widget
|
||||
|
||||
# Fix home/end/del silly
|
||||
if [[ "$TERM" != emacs ]]; then
|
||||
[[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char
|
||||
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
|
||||
[[ -z "$terminfo[kend]" ]] || bindkey -M emacs "$terminfo[kend]" end-of-line
|
||||
[[ -z "$terminfo[kich1]" ]] || bindkey -M emacs "$terminfo[kich1]" overwrite-mode
|
||||
[[ -z "$terminfo[kdch1]" ]] || bindkey -M vicmd "$terminfo[kdch1]" vi-delete-char
|
||||
[[ -z "$terminfo[khome]" ]] || bindkey -M vicmd "$terminfo[khome]" vi-beginning-of-line
|
||||
[[ -z "$terminfo[kend]" ]] || bindkey -M vicmd "$terminfo[kend]" vi-end-of-line
|
||||
[[ -z "$terminfo[kich1]" ]] || bindkey -M vicmd "$terminfo[kich1]" overwrite-mode
|
||||
|
||||
[[ -z "$terminfo[cuu1]" ]] || bindkey -M viins "$terminfo[cuu1]" vi-up-line-or-history
|
||||
[[ -z "$terminfo[cuf1]" ]] || bindkey -M viins "$terminfo[cuf1]" vi-forward-char
|
||||
[[ -z "$terminfo[kcuu1]" ]] || bindkey -M viins "$terminfo[kcuu1]" vi-up-line-or-history
|
||||
[[ -z "$terminfo[kcud1]" ]] || bindkey -M viins "$terminfo[kcud1]" vi-down-line-or-history
|
||||
[[ -z "$terminfo[kcuf1]" ]] || bindkey -M viins "$terminfo[kcuf1]" vi-forward-char
|
||||
[[ -z "$terminfo[kcub1]" ]] || bindkey -M viins "$terminfo[kcub1]" vi-backward-char
|
||||
|
||||
# ncurses fogyatekos
|
||||
[[ "$terminfo[kcuu1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcuu1]/O/[}" vi-up-line-or-history
|
||||
[[ "$terminfo[kcud1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcud1]/O/[}" vi-down-line-or-history
|
||||
[[ "$terminfo[kcuf1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcuf1]/O/[}" vi-forward-char
|
||||
[[ "$terminfo[kcub1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcub1]/O/[}" vi-backward-char
|
||||
[[ "$terminfo[khome]" == "^[O"* ]] && bindkey -M viins "${terminfo[khome]/O/[}" beginning-of-line
|
||||
[[ "$terminfo[kend]" == "^[O"* ]] && bindkey -M viins "${terminfo[kend]/O/[}" end-of-line
|
||||
[[ "$terminfo[khome]" == "^[O"* ]] && bindkey -M emacs "${terminfo[khome]/O/[}" beginning-of-line
|
||||
[[ "$terminfo[kend]" == "^[O"* ]] && bindkey -M emacs "${terminfo[kend]/O/[}" end-of-line
|
||||
fi
|
Loading…
Reference in a new issue