feat: Add new configs and updates

This commit is contained in:
2025-03-28 11:45:43 +11:00
parent 588eba9125
commit 5724576905
7 changed files with 99 additions and 67 deletions

63
.zshrc
View File

@@ -1,5 +1,4 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
@@ -70,7 +69,7 @@ ZSH_THEME="robbyrussell"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git sudo systemadmin)
plugins=(git sudo systemadmin tldr)
source $ZSH/oh-my-zsh.sh
@@ -110,27 +109,32 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export ANDROID_HOME=/home/nathan/Android/Sdk
export ANDROID_HOME=/home/$USER/Android/Sdk
# Path stuff
export PATH="/home/nathan/Downloads/go/bin:$PATH"
export PATH="/home/nathan/Downloads/idea-IU-232.10072.27/bin:$PATH"
export PATH="/home/nathan/.local/bin:$PATH"
export PATH="/home/$USER/Downloads/go/bin:$PATH"
export PATH="/home/$USER/Downloads/idea-IU-232.10072.27/bin:$PATH"
export PATH="/home/$USER/.local/bin:$PATH"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:/home/nathan/Android/Sdk/cmdline-tools/latest/bin/"
export PATH="$PATH:/home/$USER/Android/Sdk/cmdline-tools/latest/bin/"
export PATH="$PATH:$HOME/.pub-cache/bin"
export PATH="$PATH:/opt/flutter/flutter/bin"
export PATH="/home/nathan/.local/share/solana/install/active_release/bin:$PATH"
export FZF_DEFAULT_OPTS='--preview "bat --style=numbers --color=always --line-range :500 {}"'
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export PATH="/home/$USER/.local/share/solana/install/active_release/bin:$PATH"
export PATH="$PATH:/home/$USER/exe/zig-linux-x86_64-0.13.0"
export PATH="$PATH:/home/$USER/go/bin"
export FZF_DEFAULT_OPTS='--preview "bat --color=always {}"'
#export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# Alias stuff
alias hcurl='curl --doh-url https://hnsdoh.com/dns-query'
alias ls='exa'
alias ll='exa --long --group --header --icons --classify'
alias ls='eza --icons=auto'
alias ll='eza --long --group --header --icons --classify'
alias ani-cli='FZF_DEFAULT_OPTS= ani-cli'
eval "$(zoxide init --cmd cd zsh)"
eval "$(oh-my-posh init zsh --config ~/theme.omp.json)"
@@ -138,19 +142,27 @@ export HSD_API_KEY=30e7b7974d99c62b241a9daf3d4924a108515b03
alias z='zellij'
alias za='zellij attach'
tre() { command tre "$@" && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
alias tree=tre
alias opacity='/home/nathan/scripts/opacity.sh'
alias op='/home/nathan/scripts/opacity.sh'
alias blur='/home/nathan/scripts/blur.sh'
alias music='/home/nathan/scripts/music.sh'
alias venv='source /home/nathan/scripts/venv.sh'
alias copy='/home/nathan/scripts/copy.sh'
alias upload='/home/nathan/scripts/upload.sh'
alias ts='/home/nathan/scripts/ts.sh'
alias hold='/home/nathan/scripts/hold.sh'
alias message='/home/nathan/scripts/message.sh'
alias opacity='/home/$USER/scripts/opacity.sh'
alias op='/home/$USER/scripts/opacity.sh'
alias blur='/home/$USER/scripts/blur.sh'
alias music='/home/$USER/scripts/music.sh'
alias venv='source /home/$USER/scripts/venv.sh'
alias copy='/home/$USER/scripts/copy.sh'
alias upload='/home/$USER/scripts/upload.sh'
alias ts='/home/$USER/scripts/ts.sh'
alias hold='/home/$USER/scripts/hold.sh'
alias message='/home/$USER/scripts/message.sh'
alias dockerstart='/home/$USER/scripts/dockerstart.sh'
alias dockerstop='/home/$USER/scripts/dockerstop.sh'
alias domains='/home/$USER/scripts/domains.py'
# Use gitkraken's cli tool
unalias gk
unzip() {
/usr/bin/unzip -d "${1%.*}" "$1"
}
@@ -164,7 +176,12 @@ eval "$(atuin init zsh --disable-up-arrow)"
bindkey '^[[1;5A' atuin-up-search
fpath+=${ZDOTDIR:-~}/.zsh_functions
FPATH+=${ZDOTDIR:-~}/.zsh_functions
export FPATH="/home/$USER/Git/eza/completions/zsh:$FPATH"
# Start zellij
ZELLIJ_AUTO_EXIT=true
eval "$(zellij setup --generate-auto-start zsh)"
setopt NO_SHARE_HISTORY
export PATH="$PATH:/home/$USER/Downloads/javacc-javacc-7.0.13/javacc-javacc-7.0.13/scripts"