misc tiny updates i can't be bothered to list or split up into multiple commits
This commit is contained in:
parent
0931ea7330
commit
378dd53514
5 changed files with 42 additions and 39 deletions
|
@ -37,6 +37,7 @@ compose_subject_format=
|
|||
compose_body_format=Hello,\n
|
||||
show_compose_margin=0
|
||||
type_any_header=0
|
||||
notify_pasted_attachments=1
|
||||
linewrap_length=72
|
||||
linewrap_quotation=1
|
||||
linewrap_pastes=1
|
||||
|
|
|
@ -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
|
||||
#alias docker="sudo docker"
|
||||
#alias docker="podman"
|
||||
alias dcompose="docker compose up -d --remove-orphans"
|
||||
alias ddu="docker compose down && dcompose"
|
||||
alias adb="sudo adb" # Needed on Fedora, not on Debian, IDK about other distros
|
||||
# docker/podman stuff
|
||||
#alias docker="sudo docker"
|
||||
alias docker="podman"
|
||||
alias dcompose="docker compose up -d --remove-orphans"
|
||||
alias ddu="docker compose down && dcompose"
|
||||
alias adb="sudo adb" # Needed on Fedora, not on Debian, IDK about other distros
|
||||
|
||||
alias ls="ls --color=auto -CF"
|
||||
alias ll="ls -l"
|
||||
alias la="ls -a"
|
||||
alias ls="ls --color=auto -CF"
|
||||
alias ll="ls -l"
|
||||
alias la="ls -a"
|
||||
|
||||
# lol
|
||||
alias please="sudo"
|
||||
alias pwease="please"
|
||||
alias pls="please"
|
||||
# lol
|
||||
alias please="sudo"
|
||||
alias pwease="please"
|
||||
alias pls="please"
|
||||
|
||||
# kitty stuff
|
||||
if [ $TERM = "xterm-kitty" ]
|
||||
alias icat="kitten icat"
|
||||
alias s="kitten ssh"
|
||||
else
|
||||
alias icat="wezterm imgcat"
|
||||
alias s="ssh"
|
||||
end
|
||||
# kitty stuff
|
||||
if [ $TERM = "xterm-kitty" ]
|
||||
alias icat="kitten icat"
|
||||
alias s="kitten ssh"
|
||||
else
|
||||
alias icat="wezterm imgcat"
|
||||
alias s="ssh"
|
||||
end
|
||||
|
||||
# NixOS
|
||||
if type -q nixos-rebuild
|
||||
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 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 hms="NIXPKGS_ALLOW_INSECURE=1 home-manager switch"
|
||||
alias hmb="NIXPKGS_ALLOW_INSECURE=1 home-manager build"
|
||||
end
|
||||
# NixOS
|
||||
if type -q nixos-rebuild
|
||||
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 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 hms="NIXPKGS_ALLOW_INSECURE=1 home-manager switch"
|
||||
alias hmb="NIXPKGS_ALLOW_INSECURE=1 home-manager build"
|
||||
end
|
||||
|
||||
|
||||
# git
|
||||
alias git-us="git submodule update --init --recursive"
|
||||
# git
|
||||
alias git-us="git submodule update --init --recursive"
|
||||
|
||||
# switch between SSH and HTTPS remotes
|
||||
alias git-remote-switch="python3 -c \"import subprocess
|
||||
# switch between SSH and HTTPS remotes
|
||||
alias git-remote-switch="python3 -c \"import subprocess
|
||||
|
||||
remote = subprocess.getoutput('git branch -vv')
|
||||
remote = remote[remote.find('[') + 1 : remote.find('/')]
|
||||
|
@ -58,6 +57,4 @@ else:
|
|||
|
||||
exit(subprocess.getstatusoutput(f'git remote set-url {remote} {new_url}')[0])\""
|
||||
|
||||
# misc
|
||||
alias py-add-venv="set PATH $(pwd)/.venv/bin/:$PATH"
|
||||
end
|
||||
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'
|
||||
|
|
|
@ -98,6 +98,7 @@ fi
|
|||
# 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
|
||||
librewolf &
|
||||
sleep 1
|
||||
pkill librewolf
|
||||
sleep 1
|
||||
fi
|
||||
|
|
|
@ -93,6 +93,7 @@ procratstinator.gray-formatter
|
|||
raynigon.nginx-formatter
|
||||
rdnlsmith.linux-themes
|
||||
redhat.java
|
||||
redhat.vscode-xml
|
||||
redhat.vscode-yaml
|
||||
robbowen.synthwave-vscode
|
||||
rokoroku.vscode-theme-darcula
|
||||
|
|
|
@ -113,5 +113,8 @@
|
|||
"editor.fontLigatures": true,
|
||||
"[rust]": {
|
||||
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
||||
},
|
||||
"[yaml]": {
|
||||
"editor.defaultFormatter": "redhat.vscode-yaml"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue