make relevant parts if status is-interactive
so it works with scp and stuff
This commit is contained in:
parent
95e5342adb
commit
ac26d8f410
1 changed files with 17 additions and 16 deletions
|
@ -16,26 +16,27 @@ 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
|
||||
if status is-interactive
|
||||
# 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"
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
# git
|
||||
alias git-us="git submodule update --init --recursive"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue