minor fixes - rsync and stuff now works
This commit is contained in:
parent
6cddb84903
commit
af15e05858
2 changed files with 39 additions and 37 deletions
|
@ -1,46 +1,47 @@
|
||||||
# Stuff be used in init for any shell
|
if status is-interactive
|
||||||
|
# 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('/')]
|
||||||
|
@ -57,4 +58,5 @@ 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])\""
|
||||||
|
|
||||||
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 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'
|
||||||
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ for_window [window_role="pop-up"] floating enable
|
||||||
for_window [window_role="task_dialog"] floating enable
|
for_window [window_role="task_dialog"] floating enable
|
||||||
|
|
||||||
# shutdown / restart / suspend...
|
# shutdown / restart / suspend...
|
||||||
set $lockwall "swaylock -i ~/.config/sway/backgrounds/2560x1440.png"
|
set $lockwall "swaylock -i ~/.config/sway/backgrounds/widthxheight.png"
|
||||||
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend
|
set $mode_system System (l) lock, (e) logout, (r) reboot, (s) shutdown, (u) suspend
|
||||||
|
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
|
|
Loading…
Reference in a new issue