1
Fork 0
dotfiles/.zshrc

125 lines
3 KiB
Bash

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=100000
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/andy/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
export EDITOR=nvim
#export PATH=$PATH:/opt/rocm/bin/:$HOME/Documents/applications/bin
#development bin
export PATH=$PATH:$HOME/bin
export PATH=$PATH:$HOME/Documents/applications/bin
export PATH=$PATH:$HOME/.local/bin
export PATH=$PATH:$HOME/.nix-profile/bin
export PATH=$PATH:$HOME/.cargo/bin
# from mac
PS1='%(?.%F{green}%?%f.%F{red}%?%f) %2~ %# '
RPROMPT='%D{%l%M.%S}'
# %a %y %U
# %n@%M
# notify alias
alias -g nt='&& notify-send command succeeded || notify-send command failed'
eval "$(zoxide init zsh)"
GPG_TTY=$(tty)
export GPG_TTY
alias x="env -u WAYLAND_DISPLAY"
alias ls="ls -F -b -T 0 -A --color=auto"
# how it took me 6 months to figure this out idk
export GTK_THEME=Adwaita:dark
export MOZ_ENABLE_WAYLAND=1
# firefox screenshare
# https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
export XDG_CURRENT_DESKTOP=sway
alias of="onefetch --no-color-palette --no-art --no-title --disabled-fields=churn"
alias sws="static-web-server -p 8080 -d ."
# this does not if accessing a git repo thru a symlink
function git-subdir() {
local root=$(git rev-parse --show-toplevel)
# get top level folder within git
echo "${PWD#"$root"}"
}
function jobrog_git_tag() {
git-subdir | tr '/' '\n' | tail -n +2 | head -n $1 | xargs -I {} echo -n "-t {} "
}
# jobrog porcelain
# mainly adds git integration
function grog() {
local root=$(git rev-parse --show-toplevel)
job -d $root $@
}
function start() {
grog a $(jobrog_git_tag 2) $@
}
function stop() {
grog d $@
}
function todo() {
grog n $(jobrog_git_tag 2) -t todo $@
}
function todos() {
grog s -n -t $(jobrog_git_tag 2) -t todo -T done $@
}
function did() {
local rx=$1; shift
grog tag -fnt todo -T done --rx $rx -a done $*
}
alias j=just
alias n="fzf --print0 | xargs -0 -r -o nvim"
alias dy="dig +short @dns.toys"
# I can explain
alias cargo="cargo mommy"
export CARGO_MOMMYS_LITTLE="boy/puppy/dumbass/rustacean"
export CARGO_MOMMYS_EMOTES="<3/:)/❤️/💖/💗/💓/💞/"
export CARGO_MOMMYS_MOODS="ominous/chill/chill"
export CARGO_MOMMYS_ROLES="ferris/ferris/ferris/mommy"
export CARGO_MOMMYS_PRONOUNS="its"
alias dup='dust -sHbrz 1'
export FZF_DEFAULT_COMMAND='rg --files --hidden'
alias rd="env -u WAYLAND_DISPLAY renderdoccmd capture"
alias jsp='curl -X POST -H "Content-Type: application/json"'
export PATH=$PATH:$HOME/.gradle/toolchains/frc/2023/roborio/bin
export PATH=$PATH:$HOME/.gradle/toolchains/frc/2024/roborio/bin
function timetravel() {
restic restore latest -r /hdd/restic --target=/ --include=`pwd`/$1
}
export OPENSSL_LIB_DIR=/usr/lib/openssl-1.1
export OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.1
export WLR_DRM_NO_MODIFIERS=1
export QT_QPA_PLATFORM=wayland