misc tiny updates i can't be bothered to list or split up into multiple commits

This commit is contained in:
askiiart 2024-11-18 08:19:06 -06:00
parent 0931ea7330
commit 378dd53514
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
5 changed files with 42 additions and 39 deletions

View file

@ -37,6 +37,7 @@ compose_subject_format=
compose_body_format=Hello,\n compose_body_format=Hello,\n
show_compose_margin=0 show_compose_margin=0
type_any_header=0 type_any_header=0
notify_pasted_attachments=1
linewrap_length=72 linewrap_length=72
linewrap_quotation=1 linewrap_quotation=1
linewrap_pastes=1 linewrap_pastes=1

View file

@ -1,47 +1,46 @@
if status is-interactive # Stuff be used in init for any shell
# Stuff be used in init for any shell
# docker/podman stuff # docker/podman stuff
#alias docker="sudo docker" #alias docker="sudo docker"
#alias docker="podman" alias docker="podman"
alias dcompose="docker compose up -d --remove-orphans" alias dcompose="docker compose up -d --remove-orphans"
alias ddu="docker compose down && dcompose" alias ddu="docker compose down && dcompose"
alias adb="sudo adb" # Needed on Fedora, not on Debian, IDK about other distros alias adb="sudo adb" # Needed on Fedora, not on Debian, IDK about other distros
alias ls="ls --color=auto -CF" alias ls="ls --color=auto -CF"
alias ll="ls -l" alias ll="ls -l"
alias la="ls -a" alias la="ls -a"
# lol # lol
alias please="sudo" alias please="sudo"
alias pwease="please" alias pwease="please"
alias pls="please" alias pls="please"
# kitty stuff # kitty stuff
if [ $TERM = "xterm-kitty" ] if [ $TERM = "xterm-kitty" ]
alias icat="kitten icat" alias icat="kitten icat"
alias s="kitten ssh" alias s="kitten ssh"
else else
alias icat="wezterm imgcat" alias icat="wezterm imgcat"
alias s="ssh" alias s="ssh"
end end
# NixOS # NixOS
if type -q nixos-rebuild if type -q nixos-rebuild
alias nrs="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild switch --upgrade-all" alias nrs="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild switch --upgrade-all"
alias nrb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild build --upgrade-all" alias nrb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild build --upgrade-all"
alias nrs-rb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild switch --upgrade-all --rollback" alias nrs-rb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild switch --upgrade-all --rollback"
alias nrb-rb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild build --upgrade-all --rollback" alias nrb-rb="sudo NIXPKGS_ALLOW_INSECURE=1 nixos-rebuild build --upgrade-all --rollback"
alias hms="NIXPKGS_ALLOW_INSECURE=1 home-manager switch" alias hms="NIXPKGS_ALLOW_INSECURE=1 home-manager switch"
alias hmb="NIXPKGS_ALLOW_INSECURE=1 home-manager build" alias hmb="NIXPKGS_ALLOW_INSECURE=1 home-manager build"
end end
# git # git
alias git-us="git submodule update --init --recursive" alias git-us="git submodule update --init --recursive"
# switch between SSH and HTTPS remotes # switch between SSH and HTTPS remotes
alias git-remote-switch="python3 -c \"import subprocess alias git-remote-switch="python3 -c \"import subprocess
remote = subprocess.getoutput('git branch -vv') remote = subprocess.getoutput('git branch -vv')
remote = remote[remote.find('[') + 1 : remote.find('/')] remote = remote[remote.find('[') + 1 : remote.find('/')]
@ -58,6 +57,4 @@ else:
exit(subprocess.getstatusoutput(f'git remote set-url {remote} {new_url}')[0])\"" exit(subprocess.getstatusoutput(f'git remote set-url {remote} {new_url}')[0])\""
# misc alias tf2='cd ~/.local/share/Steam/steamapps/common/Team\ Fortress\ 2/; ~/.steam/steam/ubuntu12_64/steam-runtime-sniper/run ./tf.sh -- -windowed -w 1280 -h 720 -secure -steam'
alias py-add-venv="set PATH $(pwd)/.venv/bin/:$PATH"
end

View file

@ -98,6 +98,7 @@ fi
# to make sure a profile exists to apply this to # to make sure a profile exists to apply this to
if [ $(find ~/.librewolf -mindepth 1 -maxdepth 1 -type d -name "*.*" | wc -l) -eq 0 ]; then if [ $(find ~/.librewolf -mindepth 1 -maxdepth 1 -type d -name "*.*" | wc -l) -eq 0 ]; then
librewolf & librewolf &
sleep 1
pkill librewolf pkill librewolf
sleep 1 sleep 1
fi fi

View file

@ -93,6 +93,7 @@ procratstinator.gray-formatter
raynigon.nginx-formatter raynigon.nginx-formatter
rdnlsmith.linux-themes rdnlsmith.linux-themes
redhat.java redhat.java
redhat.vscode-xml
redhat.vscode-yaml redhat.vscode-yaml
robbowen.synthwave-vscode robbowen.synthwave-vscode
rokoroku.vscode-theme-darcula rokoroku.vscode-theme-darcula

View file

@ -113,5 +113,8 @@
"editor.fontLigatures": true, "editor.fontLigatures": true,
"[rust]": { "[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer" "editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
} }
} }