Compare commits

...

2 Commits

Author SHA1 Message Date
f2befbb2cd add oh my posh 2025-05-27 23:51:45 -07:00
5c7a60618c add aliases 2025-05-27 23:41:13 -07:00
3 changed files with 248 additions and 0 deletions

5
.aliases Normal file
View File

@@ -0,0 +1,5 @@
alias pissh='ssh -Y pi@192.168.1.118'
alias share='mount -t cifs //192.168.4.53/pishare /share -o username=pi,iocharset=utf8,uid=sudacode,gid=sudacode'
alias lconf='lvim ~/.config/lvim/config.lua'
alias dcre='dc up -d --force-recreate'
alias lofi="nohup mpv 'https://www.youtube.com/watch?v=jfKfPfyJRdk' >/dev/null 2>&1 &"

131
.bash_aliases Normal file
View File

@@ -0,0 +1,131 @@
#!/usr/bin/env bash
alias sudo='sudo -v; sudo '
alias suda='sudo'
alias vi=nvim
alias vim=nvim
alias nvidia-settings='nvidia-settings --config=~/nvidia/settings'
alias qutebrowser="qutebrowser --qt-arg stylesheet ~/.local/share/qutebrowser/fix-tooltips.qss"
# Aniwrapper
alias aniwrapper='aniwrapper -D 144'
## Colorls
alias ls='exa -M --group-directories-first --icons --color=always --group --git'
alias ll='ls -l'
alias la='ls -la'
alias vimf='vim $(fzf --height=45% --layout=reverse --preview="bat --style=numbers --color=always --line-range :500 {}")'
# Kitty
alias kimg='kitty +kitten icat'
alias kdiff='kitty +kitten diff'
## Pacman/Yay
# update without noconfirm
alias spu='sudo pacman -Syu'
# cleanup orphaned packages
alias cleanup='suda pacman -Rns $(pacman -Qtdq)'
# update everything
alias upall="paru -Syu --noconfirm"
## Npm/Yarn
alias ns='npm start'
alias yb='yarn build'
alias ys='yarn start'
alias yi='yarn install'
## Git
alias gst='git status'
alias gcmt='git commit'
alias gpush='git push'
alias gpull='git pull'
## Helpful
alias count='ls -l | wc -l'
# use all cores
alias uac="sh ~/.bin/main/000*"
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
alias update-fc="suda fc-cache -fv"
alias unlock-db='suda rm /var/lib/pacman/db.lck'
alias dn='deactivate_node'
alias logs='ksystemlog &'
## youtube-dl
alias yta-best="youtube-dl --extract-audio --audio-format best"
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 --config-location ~/.config/youtube-dl/config.audio"
alias ytv-best="youtube-dl -f bestvideo+bestaudio"
# get error message from journalctl
alias jctl='journalctl -p 3 -xb'
## This is specific to WSL 2. If the WSL 2 VM goes rogue and decides not to free
## up memory, this command will free your memory after about 20-30 seconds.
## Details: https://github.com/microsoft/WSL/issues/4166#issuecomment-628493643
alias drop_cache="sudo sh -c \"echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared'\""
# mkdir
alias mkdir='mkdir -p'
# wallpapers
alias mysan='feh --bg-scale ~/.wallpapers/MYSanGun-Inverted.png ~/.wallpapers/MYSanGun.png'
## I'm Lazy
alias scripts='cd /home/sudacode/scripts'
alias freud='cd /home/sudacode/'
alias c=clear
alias open='xdg-open'
alias glow='glow -p'
alias jn='jupyter-notebook'
alias blog='cd ~/projects/React/github/Sudacode-Blog-V3'
alias venv='source env/bin/activate'
alias eecs484='cd ~/projects/eecs484/project4'
alias n=ncmpcpp
alias reload='source ~/.zshrc'
alias golf='cd ~/projects/Python/SudacodeGolf/ && source env/bin/activate'
alias prolog=swipl
alias chess='cd ~/projects/React/github/sudacode-chess/'
alias temps='curl wttr.in'
alias whatsmyip='http ipinfo.io'
alias edit='sudoedit'
alias ports='sudo netstat -tupln'
alias ncdu='ncdu --color dark'
alias updates='~/SudacodeRice/scripts/package-updates'
alias aliases='cat ~/.bash_aliases'
alias sauce='~/Videos/sauce/'
alias wmedit='emc ~/.config/i3/config'
alias ani='cd $HOME/Projects/Scripts/aniwrapper'
alias archvm='VBoxManage startvm "arch-vm"'
alias chrome='google-chrome-beta --profile-directory="Profile 1" &>/dev/null &'
alias bar='~/SudacodeRice/scripts/launch_desktop.sh'
alias nord=nordvpn
alias lzd=lazydocker
alias lzg=lazygit
alias mounts='sudo ~/scripts/mounts.sh'
alias dc=docker-compose # sorry calculator
alias vimconf='cd ~/.config/nvim && vim -c ":NvimTreeOpen" && cd -'
alias sctl=systemctl
alias pyex='python -m'
alias get='aria2c'
alias links="vim ~/.links"
## Rice
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
alias pushdots='config push senpai'
alias commitdots='config commit'
alias cs='config status'
alias f=floaterm
# wireguard
alias wgu='nmcli c up wg0'
alias wgd='nmcli c down wg0'
alias tmux='TERM=xterm-256color tmux'
alias mpv='FONTCONFIG_FILE=$HOME/.config/mpv/mpv-fonts.conf mpv'
alias hypr='cd ~/.config/hypr && vim ~/.config/hypr/hyprland.conf && cd -'
alias wlc='wl-copy'
alias wlp='wl-paste'
alias vn32='WINEPREFIX=/home/sudacode/S/lutris/wineprefix32 WINEARCH=win32'
alias impv='mpv --profile=immersion'

View File

@@ -0,0 +1,112 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "command",
"style": "plain",
"foreground": "p:os",
"properties": {
"shell": "bash",
"command": "ip -4 -o addr show dev tailscale0 up 2>/dev/null | awk '{print $4}' | cut -d/ -f1"
}
}
]
},
{
"alignment": "left",
"segments": [
{
"foreground": "p:os",
"style": "plain",
"template": " ",
"type": "os"
},
{
"foreground": "p:blue",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "p:pink",
"properties": {
"folder_icon": "..\ue5fe..",
"home_icon": "~",
"style": "agnoster_full"
},
"style": "plain",
"template": "{{ .Path }}",
"type": "path"
},
{
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#EED49F{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#EE99A0{{ end }}",
"{{ if gt .Ahead 0 }}#C6A0F6{{ end }}",
"{{ if gt .Behind 0 }}#C6A0F6{{ end }}"
],
"style": "powerline",
"type": "git"
},
{
"type": "python",
"style": "powerline",
"foreground": "#a6da95",
"display_default": false,
"display_mode": "environment",
"fetch_version": false,
"fetch_virtual_env": true,
"default_venv_names": ["venv", "env"],
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}"
},
{
"type": "status",
"style": "powerline",
"foreground": "p:pink",
"properties": {
"always_enabled": false
}
}
],
"type": "prompt"
}
],
"tooltips": [
{
"type": "git",
"tips": ["git", "g"],
"style": "diamond",
"foreground": "#a6da95",
"background": "#363a4f",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .HEAD }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}",
"properties": {
"fetch_status": true,
"fetch_upstream_icon": true
}
}
],
"final_space": true,
"version": 3,
"transient_prompt": {
"background": "transparent",
"foreground": "#ACB0BE",
"template": "{{ .Shell }}> "
}
}