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 pwease="please"
|
||||||
alias pls="please"
|
alias pls="please"
|
||||||
|
|
||||||
# kitty stuff
|
if status is-interactive
|
||||||
if [ $TERM = "xterm-kitty" ]
|
# kitty stuff
|
||||||
alias icat="kitten icat"
|
if [ $TERM = "xterm-kitty" ]
|
||||||
alias s="kitten ssh"
|
alias icat="kitten icat"
|
||||||
else
|
alias s="kitten ssh"
|
||||||
alias icat="wezterm imgcat"
|
else
|
||||||
alias s="ssh"
|
alias icat="wezterm imgcat"
|
||||||
end
|
alias s="ssh"
|
||||||
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
# git
|
# git
|
||||||
alias git-us="git submodule update --init --recursive"
|
alias git-us="git submodule update --init --recursive"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue