Init Commit

This commit is contained in:
riomoo 2025-01-17 19:21:40 -05:00
commit b04f979811
Signed by: riomoo
SSH key fingerprint: SHA256:IidVcrEqw4r/6zlIASTgxRmFBmyRiZ/31wjlNkFzVG0
225 changed files with 31653 additions and 0 deletions

2
zsh/.config/zsh/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.zcompdump
plugins/

43
zsh/.config/zsh/.zshenv Normal file
View file

@ -0,0 +1,43 @@
if [ ${USER} ]; then
export ZDOTDIR="$HOME/.config/zsh"
export BUP_DIR="/mnt/major/.bup"
export XCURSOR_PATH=/usr/share/icons:${XDG_DATA_HOME}/icons
#export XCURSOR_THEME="oreo_nord_snow_3_cursors"
export XCURSOR_SIZE="16"
export PATH="$(find $HOME/.local/bin -type d | tr '\n' ':' | sed 's/:$//'):$PATH"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="/tmp/${USER}/.cache"
#export XDG_CACHE_HOME="$HOME/.cache"
export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export WINEPREFIX="$XDG_DATA_HOME/wine"
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export GTK_THEME="oomox-colors-oomox"
export ELECTRUMDIR="$XDG_DATA_HOME/electrum"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/config/.npmrc"
#export QT_STYLE_OVERRIDE=kvantum
export QT_QPA_PLATFORMTHEME=gtk2
export QT_STYLE_OVERRIDE=gtk2
export XDG_CURRENT_DESKTOP=KDE
export NB_ENCRYPTION_TOOL=gpg
export NB_DIR="$XDG_DATA_HOME/nb"
export NBRC_PATH="$XDG_CONFIG_HOME/nbrc"
export BAT_THEME="base16"
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
#export GPG_AGENT_INFO=""
export PASS=$HOME/.local/media/mnt/cont/.tmp/.bmpass
export DMY=$(date +%y-%b-%d-%a-week-%U_%H-%M-%S)
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
#export CLUTTER_PAINT=disable-clipped-redraws:disable-culling
fi

113
zsh/.config/zsh/.zshrc Normal file
View file

@ -0,0 +1,113 @@
# export ZDOTDIR=$HOME/.config/zsh
# source "$HOME/.config/zsh/.zshrc"
#!/bin/sh
export PF_SEP=" ~"
export PF_INFO="ascii os kernel wm editor shell pkgs"
source /home/moo/.config/themes/using/colors.sh
export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
--multi
--height=50%
--margin=5%,2%,2%,5%
--layout=reverse-list
--border=double
--info=inline
--prompt="Ɛ>"
--pointer="→"
--marker="♡"
--header="CTRL-c or ESC to quit"
--color="dark,fg:magenta"'
#export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS'
# --color=fg:#d8dee9,bg:-1,hl:#5e81ac
# --color=fg+:#d8dee9,bg+:#4c566a,hl+:#81a1c1
# --color=info:#ebcb8b,prompt:#5e81ac,pointer:#5e81ac
# --color=marker:#d8dee9,spinner:#5e81ac,header:#5e81ac
# --color=border:#d8dee9'
#sleep 0.05
pfetch
#echo " REMEMBER YOU IDIOT!"
#echo "  $($HOME/.local/bin/batterycheck)"
#files=( /home/moo/dox/txt-files/banners/*(noe['REPLY=$RANDOM']) )
#cat $files # or $files[1]
#cat $files[1]
HISTFILE="$XDG_DATA_HOME"/zsh/history
HISTSIZE=10000000
SAVEHIST=10000000
setopt share_history
# some useful options (man zshoptions)
setopt autocd extendedglob nomatch menucomplete
setopt interactive_comments
stty stop undef # Disable ctrl-s to freeze terminal.
zle_highlight=('paste:none')
# beeping is annoying
unsetopt BEEP
# completions
autoload -Uz compinit
zstyle ':completion:*' menu select
# zstyle ':completion::complete:lsof:*' menu yes select
zmodload zsh/complist
# compinit
_comp_options+=(globdots) # Include hidden files.
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
# Colors
autoload -Uz colors && colors
# Useful Functions
source "$ZDOTDIR/zsh-functions"
# Normal files to source
zsh_add_file "zsh-exports"
zsh_add_file "zsh-vim-mode"
zsh_add_file "zsh-aliases"
zsh_add_file "zsh-prompt"
# Plugins
zsh_add_plugin "zsh-users/zsh-autosuggestions"
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
zsh_add_plugin "hlissner/zsh-autopair"
zsh_add_completion "esc/conda-zsh-completion" false
# For more plugins: https://github.com/unixorn/awesome-zsh-plugins
# More completions https://github.com/zsh-users/zsh-completions
# Key-bindings
bindkey -s '^o' 'fzffm^M'
bindkey -s '^f' 'zi^M'
bindkey -s '^s' 'ncdu^M'
# bindkey -s '^n' 'nvim $(fzf)^M'
# bindkey -s '^v' 'nvim\n'
bindkey -s '^z' 'zi^M'
bindkey '^[[P' delete-char
bindkey "^p" up-line-or-beginning-search # Up
bindkey "^n" down-line-or-beginning-search # Down
bindkey "^k" up-line-or-beginning-search # Up
bindkey "^j" down-line-or-beginning-search # Down
bindkey -r "^u"
bindkey -r "^d"
# FZF
# TODO update for mac
[ -f $ZDOTDIR/completion/_fnm ] && fpath+="$ZDOTDIR/completion/"
# export FZF_DEFAULT_COMMAND='rg --hidden -l ""'
compinit
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
# bindkey '^e' edit-command-line
# Environment variables set everywhere
export EDITOR="vim"
export TERMINAL="st"
export BROWSER="firefox"
# For QT Themes
export QT_QPA_PLATFORMTHEME=qt5ct
#[[ -e $HOME/.config/.dircolors ]] && eval "`dircolors --sh $HOME/.config/.dircolors`"
#[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

View file

@ -0,0 +1,357 @@
#compdef fnm
autoload -U is-at-least
_fnm() {
typeset -A opt_args
typeset -a _arguments_options
local ret=1
if is-at-least 5.2; then
_arguments_options=(-s -S -C)
else
_arguments_options=(-s -C)
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--multishell-path=[Where the current node version link is stored. This value will be populated automatically by evaluating `fnm env` in your shell profile. Read more about it using `fnm help env`]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
":: :_fnm_commands" \
"*::: :->fnm" \
&& ret=0
case $state in
(fnm)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:fnm-command-$line[1]:"
case $line[1] in
(ls-remote)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(list-remote)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(ls)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'--lts[Install latest LTS]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::version -- A version string. Can be a partial semver or a LTS version name by the format lts/NAME:_files' \
&& ret=0
;;
(use)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'--install-if-missing[Install the version if it isn'\''t installed yet]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::version:_files' \
&& ret=0
;;
(env)
_arguments "${_arguments_options[@]}" \
'--shell=[The shell syntax to use. Infers when missing]: :(bash zsh fish powershell)' \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'--multi[Deprecated. This is the default now]' \
'--use-on-cd[Print the script to change Node versions every directory change]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
'--shell=[The shell syntax to use. Infers when missing]: :(zsh bash fish powershell elvish)' \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(alias)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
':to-version:_files' \
':name:_files' \
&& ret=0
;;
(default)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
':version:_files' \
&& ret=0
;;
(current)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" \
'--using=[Either an explicit version, or a filename with the version written in it]' \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'--using-file[Deprecated. This is the default now]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::arguments -- The command to run:_files' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::version:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
'--node-dist-mirror=[https://nodejs.org/dist/ mirror]' \
'--fnm-dir=[The root directory of fnm installations]' \
'--log-level=[The log level of fnm commands]' \
'--arch=[Override the architecture of the installed Node binary. Defaults to arch of fnm binary]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
;;
esac
;;
esac
}
(( $+functions[_fnm_commands] )) ||
_fnm_commands() {
local commands; commands=(
"list-remote:List all remote Node.js versions" \
"ls-remote:List all remote Node.js versions" \
"list:List all locally installed Node.js versions" \
"ls:List all locally installed Node.js versions" \
"install:Install a new Node.js version" \
"use:Change Node.js version" \
"env:Print and set up required environment variables for fnm" \
"completions:Print shell completions to stdout" \
"alias:Alias a version to a common name" \
"default:Set a version as the default version" \
"current:Print the current Node.js version" \
"exec:Run a command within fnm context" \
"uninstall:Uninstall a Node.js version" \
"help:Prints this message or the help of the given subcommand(s)" \
)
_describe -t commands 'fnm commands' commands "$@"
}
(( $+functions[_fnm__alias_commands] )) ||
_fnm__alias_commands() {
local commands; commands=(
)
_describe -t commands 'fnm alias commands' commands "$@"
}
(( $+functions[_fnm__completions_commands] )) ||
_fnm__completions_commands() {
local commands; commands=(
)
_describe -t commands 'fnm completions commands' commands "$@"
}
(( $+functions[_fnm__current_commands] )) ||
_fnm__current_commands() {
local commands; commands=(
)
_describe -t commands 'fnm current commands' commands "$@"
}
(( $+functions[_fnm__default_commands] )) ||
_fnm__default_commands() {
local commands; commands=(
)
_describe -t commands 'fnm default commands' commands "$@"
}
(( $+functions[_fnm__env_commands] )) ||
_fnm__env_commands() {
local commands; commands=(
)
_describe -t commands 'fnm env commands' commands "$@"
}
(( $+functions[_fnm__exec_commands] )) ||
_fnm__exec_commands() {
local commands; commands=(
)
_describe -t commands 'fnm exec commands' commands "$@"
}
(( $+functions[_fnm__help_commands] )) ||
_fnm__help_commands() {
local commands; commands=(
)
_describe -t commands 'fnm help commands' commands "$@"
}
(( $+functions[_fnm__install_commands] )) ||
_fnm__install_commands() {
local commands; commands=(
)
_describe -t commands 'fnm install commands' commands "$@"
}
(( $+functions[_fnm__list_commands] )) ||
_fnm__list_commands() {
local commands; commands=(
)
_describe -t commands 'fnm list commands' commands "$@"
}
(( $+functions[_fnm__list-remote_commands] )) ||
_fnm__list-remote_commands() {
local commands; commands=(
)
_describe -t commands 'fnm list-remote commands' commands "$@"
}
(( $+functions[_fnm__ls_commands] )) ||
_fnm__ls_commands() {
local commands; commands=(
)
_describe -t commands 'fnm ls commands' commands "$@"
}
(( $+functions[_ls_commands] )) ||
_ls_commands() {
local commands; commands=(
)
_describe -t commands 'ls commands' commands "$@"
}
(( $+functions[_fnm__ls-remote_commands] )) ||
_fnm__ls-remote_commands() {
local commands; commands=(
)
_describe -t commands 'fnm ls-remote commands' commands "$@"
}
(( $+functions[_ls-remote_commands] )) ||
_ls-remote_commands() {
local commands; commands=(
)
_describe -t commands 'ls-remote commands' commands "$@"
}
(( $+functions[_fnm__uninstall_commands] )) ||
_fnm__uninstall_commands() {
local commands; commands=(
)
_describe -t commands 'fnm uninstall commands' commands "$@"
}
(( $+functions[_fnm__use_commands] )) ||
_fnm__use_commands() {
local commands; commands=(
)
_describe -t commands 'fnm use commands' commands "$@"
}
_fnm "$@"

145
zsh/.config/zsh/zsh-aliases Normal file
View file

@ -0,0 +1,145 @@
#!/bin/sh
alias sxg="startx '$XDG_CONFIG_HOME/X11/xinitrc'"
if [ -s "${XDG_CONFIG_HOME}/ssh/config" ]
then
SSH_CONFIG="-F ${XDG_CONFIG_HOME}/ssh/config"
fi
if [ -s "${XDG_CONFIG_HOME}/ssh/id_rsa" ]
then
SSH_ID="-i ${XDG_CONFIG_HOME}/ssh/id_rsa"
fi
if [ -s "${XDG_CONFIG_HOME}/ssh/id_ed25519" ]
then
SSH_ID="-i ${XDG_CONFIG_HOME}/ssh/id_ed25519"
fi
alias ssh="ssh -o UserKnownHostsFile='${XDG_CONFIG_HOME}/ssh/known_hosts' $SSH_CONFIG $SSH_ID "
alias scp="scp -o UserKnownHostsFile='${XDG_CONFIG_HOME}/ssh/known_hosts' $SSH_CONFIG $SSH_ID "
alias ssh-copy-id="ssh-copy-id $SSH_ID"
alias zsh-update-plugins="find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} pull -q"
# alias lvim='nvim -u ~/.local/share/lunarvim/lvim/init.lua --cmd "set runtimepath+=~/.local/share/lunarvim/lvim"'
# get fastest mirrors
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# confirm before overwriting something
alias mv='mv -i'
alias rm='rm -i'
# easier to read disk
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
# get top process eating memory
alias psmem='ps auxf | sort -nr -k 4 | head -5'
# get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3 | head -5'
# gpg encryption
# verify signature for isos
alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
# receive the key of a developer
alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
# For when keys break
alias archlinx-fix-keys="sudo pacman-key --init && sudo pacman-key --populate archlinux && sudo pacman-key --refresh-keys"
alias monerohot="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 127.0.0.1 --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
alias monerocold="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 127.0.0.1 --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/view-safe --log-file ~/.config/monero.log"
alias moneromine="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 127.0.0.1 --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/mining-only --log-file ~/.config/monero.log"
alias monerohot2="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host xmr-de-1.boldsuck.org --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
alias monerohot3="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host uwillrunanodesoon.moneroworld.com:18089 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
alias monerohot3view="/home/moo/monero/build/Linux/_HEAD_detached_at_v0.18.3.3_/release/bin/monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host uwillrunanodesoon.moneroworld.com:18089 --wallet-file /home/moo/.config/monero-wallet/hot-view-only/hot-view-only --log-file ~/.config/monero.log"
alias monerohot3offline="/home/moo/monero/build/Linux/_HEAD_detached_at_v0.18.3.3_/release/bin/monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --wallet-file /home/moo/.config/monero-wallet/hot-wallet-offline/hot-wallet-offline --log-file ~/.config/monero.log"
alias monerohotmine="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 173.80.117.79 --daemon-port 18089 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
alias monerohot5view="/run/media/moo/unlocked-universe/otherthings/dox/projects/monero/build/Linux/_HEAD_detached_at_v0.18.3.3_/release/bin/monero-wallet-cli --proxy 192.168.0.138:9050 --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host sisjvizpqhu6plxw3xai67cqjvlbxkfy2kcc53f6bplzdabretuybzad.onion --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/hot-view-only/hot-view-only --log-file ~/.config/monero.log"
alias monerohot5="monero-wallet-cli --proxy 192.168.0.138:9050 --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host sisjvizpqhu6plxw3xai67cqjvlbxkfy2kcc53f6bplzdabretuybzad.onion --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
alias monerohot6="monero-wallet-cli --proxy 127.0.0.1:9050 --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host sisjvizpqhu6plxw3xai67cqjvlbxkfy2kcc53f6bplzdabretuybzad.onion --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
#alias monerocoldmine="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 173.80.117.79 --daemon-port 18081 --wallet-file /home/moo/.config/monero-wallet/view-safe --log-file ~/.config/monero.log"
#
alias monerohotminetwo="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 173.80.117.79:18089 --wallet-file /home/moo/.config/monero-wallet/moo/moo --log-file ~/.config/monero.log"
#
alias monerocoldminetwo="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 173.80.117.79:18089 --wallet-file /home/moo/.config/monero-wallet/view-safe --log-file ~/.config/monero.log"
alias monerocoldmine="monero-wallet-cli --shared-ringdb-dir=/home/moo/.config/shared-db --trusted-daemon --daemon-host 173.80.117.79 --daemon-port 18089 --wallet-file /home/moo/.config/monero-wallet/view-safe --log-file ~/.config/monero.log"
alias randpw2="< /dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c4096 > 't.txt'"
alias randpw3="< /dev/urandom tr -dc '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c4096 | gpg2 -o t.gpg -e -r the7772"
alias randpwsmol="< /dev/urandom tr -dc '12345!@%^qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c128 > 't.txt'"
alias randpw4="< /dev/urandom tr -dc '12345-_qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c18 | gpg2 -o t.gpg -e -r the7772"
alias mullvad="curl https://am.i.mullvad.net/json"
CD() { eval "cd -- $(fzf < /home/moo/.local/tmp/bookmarks)"; }
ffp() {
find / -type f 2>/dev/null | fzf-ueberzogen --multi --preview 'fzf-preview {}' > /tmp/.pass
}
fdsx() {
sxiv -r "$(find / -type d 2>/dev/null | fzf)"
}
ff() {
find / -type f 2>/dev/null | fzf > /tmp/.pass
}
fdr() {
find / -type d 2>/dev/null | fzf > /tmp/.pass
}
#cd "$(find / -type d 2>/dev/null | fzf)"
fcd() {
cd "$(find / -type d 2>/dev/null | fzf --preview='tree -C {} | head -n 50' --preview-window=70%,border-double,top)"
}
ffs() {
find / -type f 2>/dev/null | fzf
}
#fcd() {
# cd "$(find ./"$1" -type d -not -path '*/.config/librewolf/main/*' -not -path '*/.config/libreoffice/*' -not -path '*/.config/lf/src/lf-r27/*' | fzf)"
#}
drax() {
dragon -a -x $(find ./"$1" -type f | fzf-ueberzogen --multi --preview 'fzf-preview {}')
}
dra() {
dragon -a $(find ./"$1" -type f | fzf-ueberzogen --multi --preview 'fzf-preview {}')
}
dr() {
dragon $(find ./"$1" -type f | fzf-ueberzogen --multi --preview 'fzf-preview {}')
}
fmv() {
MOV=$(find . -type f | fzf --multi --preview 'fzf-preview {}')
if [[ $MOV != '' ]];
then
vimv $MOV
else
clear;
fi
}
fcp() {
COP=$(find . -type f | fzf --multi --preview 'fzf-preview {}')
if [[ $COP != '' ]];
then
vimcp $COP
else
clear;
fi
}
yttompv() {
ytfzf -L | grep https:// | cat > $HOME/.local/media/vids/yt/watch.list && devour mpv --playlist="$HOME/.local/media/vids/yt/watch.list"
}
alias ls='ls --color=auto'

View file

@ -0,0 +1,92 @@
#!/bin/sh
export LF_ICONS="di=:\
fi=📃:\
tw=🤝:\
ow=📂:\
ln=⛓:\
or=❌:\
ex=🎯:\
*.txt=✍:\
*.mom=✍:\
*.me=✍:\
*.ms=✍:\
*.png=:\
*.webp=:\
*.ico=:\
*.jpg=:\
*.jpe=:\
*.jpeg=:\
*.gif=:\
*.svg=:\
*.tif=:\
*.tiff=:\
*.xcf=:\
*.html=:\
*.xml=📰:\
*.gpg=🔒:\
*.css=:\
*.pdf=:\
*.djvu=📚:\
*.epub=📚:\
*.csv=📓:\
*.xlsx=📓:\
*.tex=📜:\
*.md=📘:\
*.r=📊:\
*.R=📊:\
*.rmd=📊:\
*.Rmd=📊:\
*.m=📊:\
*.mp3=🎵:\
*.opus=🎵:\
*.ogg=🎵:\
*.m4a=🎵:\
*.flac=🎼:\
*.wav=🎼:\
*.mkv=:\
*.mp4=:\
*.webm=:\
*.mpeg=:\
*.avi=:\
*.mov=:\
*.mpg=:\
*.wmv=:\
*.m4b=:\
*.flv=:\
*.zip=📦:\
*.rar=📦:\
*.7z=📦:\
*.tar.gz=📦:\
*.z64=🎮:\
*.v64=🎮:\
*.n64=🎮:\
*.gba=🎮:\
*.nes=🎮:\
*.gdi=🎮:\
*.1=:\
*.nfo=:\
*.info=:\
*.log=📙:\
*.iso=:\
*.img=:\
*.bib=🎓:\
*.ged=👪:\
*.part=:\
*.torrent=:\
*.jar=:\
*.java=:\
"
HISTSIZE=1000000
SAVEHIST=1000000
export PATH="$HOME/.local/bin":$PATH
export MANPAGER='less +Man!'
export MANWIDTH=999
export PATH=$HOME/.cargo/bin:$PATH
export PATH=$HOME/.local/share/go/bin:$PATH
export GOPATH=$HOME/.local/share/go
#export PATH=$HOME/.fnm:$PATH
export PATH="$HOME/.local/share/vim/bin":$PATH
#export PATH="$PATH:./node_modules/.bin"
#eval "$(fnm env)"
# eval "$(zoxide init zsh)"
# eval "`pip completion --zsh`"

View file

@ -0,0 +1,37 @@
# Function to source files if they exist
function zsh_add_file() {
[ -f "$ZDOTDIR/$1" ] && source "$ZDOTDIR/$1"
}
function zsh_add_plugin() {
PLUGIN_NAME=$(echo $1 | cut -d "/" -f 2)
if [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
# For plugins
zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh" || \
zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh"
else
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
fi
}
function zsh_add_completion() {
PLUGIN_NAME=$(echo $1 | cut -d "/" -f 2)
if [ -d "$ZDOTDIR/plugins/$PLUGIN_NAME" ]; then
# For completions
completion_file_path=$(ls $ZDOTDIR/plugins/$PLUGIN_NAME/_*)
fpath+="$(dirname "${completion_file_path}")"
zsh_add_file "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh"
else
git clone "https://github.com/$1.git" "$ZDOTDIR/plugins/$PLUGIN_NAME"
fpath+=$(ls $ZDOTDIR/plugins/$PLUGIN_NAME/_*)
[ -f $ZDOTDIR/.zccompdump ] && $ZDOTDIR/.zccompdump
fi
completion_file="$(basename "${completion_file_path}")"
if [ "$2" = true ] && compinit "${completion_file:1}"
}
#function mach_java_mode() {
# #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
# export SDKMAN_DIR="$HOME/.sdkman"
# [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
#}

View file

@ -0,0 +1,32 @@
#!/bin/sh
## autoload vcs and colors
autoload -Uz vcs_info
autoload -U colors && colors
# enable only git
zstyle ':vcs_info:*' enable git
# setup a hook that runs before every ptompt.
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
# add a function to check for untracked files in the directory.
# from https://github.com/zsh-users/zsh/blob/master/Misc/vcs_info-examples
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked
#
+vi-git-untracked(){
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' ]] && \
git status --porcelain | grep '??' &> /dev/null ; then
# files in $PWD, use:
#[[ -n $(git ls-files --others --exclude-standard) ]] ; then
hook_com[staged]+='!' # signify new files with a bang
fi
}
zstyle ':vcs_info:*' check-for-changes true
#zstyle ':vcs_info:git:*' formats " %r/%S %b %m%u%c "
zstyle ':vcs_info:git:*' formats " %{$fg[blue]%}(%{$fg[red]%}%m%u%c%{$fg[yellow]%}%{$fg[magenta]%} %a%{$fg[magenta]%}%b%{$fg[blue]%})"
PROMPT="%B%[%{$fg[black]%}%m%{$fg[blue]%}@%{$fg[white]%}%n%{$fg[blue]%}] %(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$fg[blue]%}%c%{$reset_color%}"
PROMPT+="\$vcs_info_msg_0_ "

View file

@ -0,0 +1,27 @@
# bindkey -e will be emacs mode
bindkey -v
export KEYTIMEOUT=1
# Use vim keys in tab complete menu:
bindkey -M menuselect '^h' vi-backward-char
bindkey -M menuselect '^k' vi-up-line-or-history
bindkey -M menuselect '^l' vi-forward-char
bindkey -M menuselect '^j' vi-down-line-or-history
bindkey -M menuselect '^[[Z' vi-up-line-or-history
bindkey -v '^?' backward-delete-char
#Change cursor shape for different vi modes.
function zle-keymap-select () {
case $KEYMAP in
vicmd) echo -ne '\e[1 q';; # block
viins|main) echo -ne '\e[5 q';; # beam
esac
}
zle -N zle-keymap-select
zle-line-init() {
zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
echo -ne "\e[5 q"
}
zle -N zle-line-init
echo -ne '\e[1 q' # Use beam shape cursor on startup.
preexec() { echo -ne '\e[1 q' ;} # Use beam shape cursor for each new prompt.