···55update_check = true
6677## address of the sync server
88-sync_address = "http://nas.carp-wyvern.ts.net:8888"
88+sync_address = "http://nas-aux.carp-wyvern.ts.net:8888"
991010## how often to sync history. note that this is only triggered when a command
1111## is ran, so sync intervals may well be longer
···197197## The "workspace" mode is skipped when not in a workspace or workspaces = false.
198198## Default filter mode can be overridden with the filter_mode setting.
199199# filters = [ "global", "host", "session", "session-preload", "workspace", "directory" ]
200200+201201+[dotfiles]
202202+enabled = true
+9-162
zsh/.zshrc
···39394040zplug load
41414242-### ENVIRONMENT VARS
4343-export PAGER="less -FRX"
4444-export MANWIDTH="88"
4545-export MANROFFOPT="-c"
4646-export MANPAGER="less -FRX"
4747-export BAT_PAGER="less -FRX"
4848-export BAT_STYLE="plain"
4949-export EDITOR="nvim"
5050-5151-# Have less display colours
5252-# from: https://wiki.archlinux.org/index.php/Color_output_in_console#man
5353-export LESS_TERMCAP_mb=$'\e[1;31m' # begin bold
5454-export LESS_TERMCAP_md=$'\e[1;34m' # begin blink
5555-export LESS_TERMCAP_so=$'\e[01;0;33m' # begin reverse video
5656-export LESS_TERMCAP_us=$'\e[01;31m' # begin underline
5757-export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink
5858-export LESS_TERMCAP_se=$'\e[0m' # reset reverse video
5959-export LESS_TERMCAP_ue=$'\e[0m' # reset underline
6060-export GROFF_NO_SGR=1 # for konsole and gnome-terminal
6161-6262-# HISTSIZE is the number of lines of history that is kept within any given
6363-# running zsh instance. SAVEHIST is the number of lines of history that is
6464-# written out to the HISTFILE when that event occurs. If you use the
6565-# HIST_EXPIRE_DUPS_FIRST option, setting this value larger than the SAVEHIST
6666-# size will give you the difference as a cushion for saving duplicated history
6767-# events.
6868-HISTSIZE=100000
6969-SAVEHIST=65536
7070-7171-# Name of the file used to store command history
7272-HISTFILE="${HOME}/.zsh_history"
7373-7474-# Language
7575-export LANG="en_US.UTF-8"
7676-7777-# Manpages
7878-export MANPATH="${MANPATH:-/usr/share/man:/usr/local/share/man}"
7979-8080-# Set PATH
8181-export PATH="/bin:/sbin:/usr/local/bin"
8282-8383-# Add ~/.local/bin to PATH
8484-export PATH="${HOME}/.local/bin:${PATH}"
8585-8686-# Add ~/bin to PATH
8787-export PATH="${HOME}/bin:${PATH}"
8888-8989-# Add ~/go/bin to PATH
9090-export PATH="${HOME}/go/bin:${PATH}"
9191-9292-# Add ~/.cargo/bin to PATH
9393-if test -d "${HOME}/.cargo/bin"; then
9494- export PATH="${HOME}/.cargo/bin:${PATH}"
9595-fi
9696-9797-# Add homebrew to shell env if it exists
9898-test -d /home/linuxbrew/.linuxbrew && \
9999- eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
100100-10142# Automatically remove duplicates from these arrays
10243typeset -gU path cdpath manpath fpath
10344···1185911960### ALIASES
12061121121-# Use batman if available
122122-if command -v batman >/dev/null; then
123123- alias man='batman'
124124-fi
125125-126126-if command -v batcat >/dev/null; then
127127- alias bat='batcat'
128128-fi
129129-130130-# The ls family
131131-if test -f /bin/lsd; then
132132- alias ls='lsd'
133133- alias la='lsd -a'
134134- alias ll='lsd -l'
135135- alias lal='lsd -al'
136136-else
137137- alias ls='ls --color=auto'
138138- alias la='ls -a'
139139- alias ll='ls -l'
140140- alias lal='ls -al'
141141-fi
142142-143143-# grep
144144-alias grep='grep --color'
145145-146146-# Prompt user before overwriting files
147147-alias cp='cp -i'
148148-alias mv='mv -i'
149149-alias rm='rm -i'
150150-15162# convert just recipes into aliases
15263for recipe in $(just --justfile ~/.justfile --summary); do
15364 alias $recipe="just --justfile ~/.justfile --working-directory . $recipe"
···16374alias -g L='| less -FRX'
16475alias -g CC='| xclip -selection clipboard'
16576166166-# firewalld
167167-if test -x "$(command -v firewall-cmd)"; then
168168- alias fw='sudo firewall-cmd'
169169- alias fwp='sudo firewall-cmd --permanent'
170170- alias fwr='sudo firewall-cmd --reload'
171171- alias fwrp='sudo firewall-cmd --runtime-to-permanent'
172172-fi
173173-174174-# git
175175-alias ga='git add'
176176-alias gcl='git clone'
177177-alias gcmsg='git commit -m'
178178-alias gd='git diff'
179179-alias gl='git pull'
180180-alias gp='git push'
181181-alias gr='git remote'
182182-alias grbi='git rebase -i'
183183-alias grm='git rm'
184184-alias grv='git remote -v'
185185-alias gst='git status'
186186-187187-# todo.txt
188188-if test -x "$(command -v todo.sh)"; then
189189- alias todo="todo.sh"
190190-fi
191191-19277### BINDINGS
19378typeset -g -A key
19479···242127243128### FUNCTIONS
244129245245-# Command checker helper
246246-function check_cmd() {
247247- test -x "$(command -v $1)"
248248-}
249249-250250-## Nushell and jc functions
251251-252130# nushell: df
253131function nudf() {
254132 nu -c 'jc df | from json'
···279157 nu -c 'sudo jc lsof -i -P | from json'
280158}
281159282282-# nushell: ping
283283-function nuping() {
284284- nu -c 'jc ping -c 3 $1 | from json'
285285-}
286286-287160# nushell: pong
288161function pong() {
289162 nu -c 'jc ping -c 3 www.google.com | from json'
···299172 cat /etc/os-release | nu -c 'jc --os-release | from json'
300173}
301174302302-# nushell: timestamp Z
303303-function nutsz() {
304304- nu -c 'date now | format date "%FT%T%:z"'
175175+# Command checker helper
176176+function check_cmd() {
177177+ test -x "$(command -v $1)"
305178}
306179307180# watch directory listing, update every 0.1s
···402275 cd "$selection" || exit
403276}
404277405405-# Print timestamp as %Y-%m-%d %H:%M:%S.
406406-function tstamp() {
407407- emulate -L zsh
408408- date '+%Y-%m-%d %H:%M:%S' | tr -d '\n'
409409-}
410410-411411-# Print timestamp as %Y-%m-%dT%H:%M:%S%:z
412412-function tstampz() {
413413- emulate -L zsh
414414- date '+%Y-%m-%dT%H:%M:%S%:z' | tr -d '\n'
415415-}
416416-417278# Invoke this every time you change .zshrc to recompile it.
418279function src() {
419280 autoload -U zrecompile
···458319#--color=border:#E67E80,label:#D3C6AA"
459320460321# Catppuccin Mocha colorscheme
461461-export FZF_DEFAULT_OPTS=" \
462462---color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
463463---color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
464464---color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
465465---color=selected-bg:#45475A \
466466---color=border:#6C7086,label:#CDD6F4"
467467-468468-## completion trigger
469469-export FZF_COMPLETION_TRIGGER="~~"
470470-471471-## default source for fzf
472472-export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
473473-474474-# CTRL-R
475475-# CTRL-Y to copy the command into clipboard using wl-copy
476476-export FZF_CTRL_R_OPTS="
477477- --bind 'ctrl-y:execute-silent(echo -n {2..} | wl-copy)+abort'
478478- --color header:italic
479479- --header 'Press CTRL-Y to copy command into clipboard'"
480480-322322+#export FZF_DEFAULT_OPTS=" \
323323+#--color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
324324+#--color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
325325+#--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
326326+#--color=selected-bg:#45475A \
327327+#--color=border:#6C7086,label:#CDD6F4"
481328482329### OPTIONS
483330