My user config prefs

~atuin, ~zshrc

+13 -163
+4 -1
config/atuin/config.toml
··· 5 5 update_check = true 6 6 7 7 ## address of the sync server 8 - sync_address = "http://nas.carp-wyvern.ts.net:8888" 8 + sync_address = "http://nas-aux.carp-wyvern.ts.net:8888" 9 9 10 10 ## how often to sync history. note that this is only triggered when a command 11 11 ## is ran, so sync intervals may well be longer ··· 197 197 ## The "workspace" mode is skipped when not in a workspace or workspaces = false. 198 198 ## Default filter mode can be overridden with the filter_mode setting. 199 199 # filters = [ "global", "host", "session", "session-preload", "workspace", "directory" ] 200 + 201 + [dotfiles] 202 + enabled = true
+9 -162
zsh/.zshrc
··· 39 39 40 40 zplug load 41 41 42 - ### ENVIRONMENT VARS 43 - export PAGER="less -FRX" 44 - export MANWIDTH="88" 45 - export MANROFFOPT="-c" 46 - export MANPAGER="less -FRX" 47 - export BAT_PAGER="less -FRX" 48 - export BAT_STYLE="plain" 49 - export EDITOR="nvim" 50 - 51 - # Have less display colours 52 - # from: https://wiki.archlinux.org/index.php/Color_output_in_console#man 53 - export LESS_TERMCAP_mb=$'\e[1;31m' # begin bold 54 - export LESS_TERMCAP_md=$'\e[1;34m' # begin blink 55 - export LESS_TERMCAP_so=$'\e[01;0;33m' # begin reverse video 56 - export LESS_TERMCAP_us=$'\e[01;31m' # begin underline 57 - export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink 58 - export LESS_TERMCAP_se=$'\e[0m' # reset reverse video 59 - export LESS_TERMCAP_ue=$'\e[0m' # reset underline 60 - export GROFF_NO_SGR=1 # for konsole and gnome-terminal 61 - 62 - # HISTSIZE is the number of lines of history that is kept within any given 63 - # running zsh instance. SAVEHIST is the number of lines of history that is 64 - # written out to the HISTFILE when that event occurs. If you use the 65 - # HIST_EXPIRE_DUPS_FIRST option, setting this value larger than the SAVEHIST 66 - # size will give you the difference as a cushion for saving duplicated history 67 - # events. 68 - HISTSIZE=100000 69 - SAVEHIST=65536 70 - 71 - # Name of the file used to store command history 72 - HISTFILE="${HOME}/.zsh_history" 73 - 74 - # Language 75 - export LANG="en_US.UTF-8" 76 - 77 - # Manpages 78 - export MANPATH="${MANPATH:-/usr/share/man:/usr/local/share/man}" 79 - 80 - # Set PATH 81 - export PATH="/bin:/sbin:/usr/local/bin" 82 - 83 - # Add ~/.local/bin to PATH 84 - export PATH="${HOME}/.local/bin:${PATH}" 85 - 86 - # Add ~/bin to PATH 87 - export PATH="${HOME}/bin:${PATH}" 88 - 89 - # Add ~/go/bin to PATH 90 - export PATH="${HOME}/go/bin:${PATH}" 91 - 92 - # Add ~/.cargo/bin to PATH 93 - if test -d "${HOME}/.cargo/bin"; then 94 - export PATH="${HOME}/.cargo/bin:${PATH}" 95 - fi 96 - 97 - # Add homebrew to shell env if it exists 98 - test -d /home/linuxbrew/.linuxbrew && \ 99 - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 100 - 101 42 # Automatically remove duplicates from these arrays 102 43 typeset -gU path cdpath manpath fpath 103 44 ··· 118 59 119 60 ### ALIASES 120 61 121 - # Use batman if available 122 - if command -v batman >/dev/null; then 123 - alias man='batman' 124 - fi 125 - 126 - if command -v batcat >/dev/null; then 127 - alias bat='batcat' 128 - fi 129 - 130 - # The ls family 131 - if test -f /bin/lsd; then 132 - alias ls='lsd' 133 - alias la='lsd -a' 134 - alias ll='lsd -l' 135 - alias lal='lsd -al' 136 - else 137 - alias ls='ls --color=auto' 138 - alias la='ls -a' 139 - alias ll='ls -l' 140 - alias lal='ls -al' 141 - fi 142 - 143 - # grep 144 - alias grep='grep --color' 145 - 146 - # Prompt user before overwriting files 147 - alias cp='cp -i' 148 - alias mv='mv -i' 149 - alias rm='rm -i' 150 - 151 62 # convert just recipes into aliases 152 63 for recipe in $(just --justfile ~/.justfile --summary); do 153 64 alias $recipe="just --justfile ~/.justfile --working-directory . $recipe" ··· 163 74 alias -g L='| less -FRX' 164 75 alias -g CC='| xclip -selection clipboard' 165 76 166 - # firewalld 167 - if test -x "$(command -v firewall-cmd)"; then 168 - alias fw='sudo firewall-cmd' 169 - alias fwp='sudo firewall-cmd --permanent' 170 - alias fwr='sudo firewall-cmd --reload' 171 - alias fwrp='sudo firewall-cmd --runtime-to-permanent' 172 - fi 173 - 174 - # git 175 - alias ga='git add' 176 - alias gcl='git clone' 177 - alias gcmsg='git commit -m' 178 - alias gd='git diff' 179 - alias gl='git pull' 180 - alias gp='git push' 181 - alias gr='git remote' 182 - alias grbi='git rebase -i' 183 - alias grm='git rm' 184 - alias grv='git remote -v' 185 - alias gst='git status' 186 - 187 - # todo.txt 188 - if test -x "$(command -v todo.sh)"; then 189 - alias todo="todo.sh" 190 - fi 191 - 192 77 ### BINDINGS 193 78 typeset -g -A key 194 79 ··· 242 127 243 128 ### FUNCTIONS 244 129 245 - # Command checker helper 246 - function check_cmd() { 247 - test -x "$(command -v $1)" 248 - } 249 - 250 - ## Nushell and jc functions 251 - 252 130 # nushell: df 253 131 function nudf() { 254 132 nu -c 'jc df | from json' ··· 279 157 nu -c 'sudo jc lsof -i -P | from json' 280 158 } 281 159 282 - # nushell: ping 283 - function nuping() { 284 - nu -c 'jc ping -c 3 $1 | from json' 285 - } 286 - 287 160 # nushell: pong 288 161 function pong() { 289 162 nu -c 'jc ping -c 3 www.google.com | from json' ··· 299 172 cat /etc/os-release | nu -c 'jc --os-release | from json' 300 173 } 301 174 302 - # nushell: timestamp Z 303 - function nutsz() { 304 - nu -c 'date now | format date "%FT%T%:z"' 175 + # Command checker helper 176 + function check_cmd() { 177 + test -x "$(command -v $1)" 305 178 } 306 179 307 180 # watch directory listing, update every 0.1s ··· 402 275 cd "$selection" || exit 403 276 } 404 277 405 - # Print timestamp as %Y-%m-%d %H:%M:%S. 406 - function tstamp() { 407 - emulate -L zsh 408 - date '+%Y-%m-%d %H:%M:%S' | tr -d '\n' 409 - } 410 - 411 - # Print timestamp as %Y-%m-%dT%H:%M:%S%:z 412 - function tstampz() { 413 - emulate -L zsh 414 - date '+%Y-%m-%dT%H:%M:%S%:z' | tr -d '\n' 415 - } 416 - 417 278 # Invoke this every time you change .zshrc to recompile it. 418 279 function src() { 419 280 autoload -U zrecompile ··· 458 319 #--color=border:#E67E80,label:#D3C6AA" 459 320 460 321 # Catppuccin Mocha colorscheme 461 - export FZF_DEFAULT_OPTS=" \ 462 - --color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \ 463 - --color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \ 464 - --color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \ 465 - --color=selected-bg:#45475A \ 466 - --color=border:#6C7086,label:#CDD6F4" 467 - 468 - ## completion trigger 469 - export FZF_COMPLETION_TRIGGER="~~" 470 - 471 - ## default source for fzf 472 - export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git" 473 - 474 - # CTRL-R 475 - # CTRL-Y to copy the command into clipboard using wl-copy 476 - export FZF_CTRL_R_OPTS=" 477 - --bind 'ctrl-y:execute-silent(echo -n {2..} | wl-copy)+abort' 478 - --color header:italic 479 - --header 'Press CTRL-Y to copy command into clipboard'" 480 - 322 + #export FZF_DEFAULT_OPTS=" \ 323 + #--color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \ 324 + #--color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \ 325 + #--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \ 326 + #--color=selected-bg:#45475A \ 327 + #--color=border:#6C7086,label:#CDD6F4" 481 328 482 329 ### OPTIONS 483 330