mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
fish: remove old alias
This commit is contained in:
parent
074a29bebb
commit
4e77f50b6f
1 changed files with 0 additions and 36 deletions
|
|
@ -1,40 +1,19 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
hostname,
|
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
shellAbbrs = lib.mergeAttrsList [
|
shellAbbrs = lib.mergeAttrsList [
|
||||||
{
|
|
||||||
# Docker
|
|
||||||
dc = "docker compose";
|
|
||||||
|
|
||||||
# Git
|
|
||||||
gaa = "git add (git rev-parse --show-toplevel)";
|
|
||||||
"ga." = "git add .";
|
|
||||||
gp = "git pull";
|
|
||||||
gP = "git push";
|
|
||||||
|
|
||||||
# Editor
|
|
||||||
":q" = "exit";
|
|
||||||
}
|
|
||||||
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
"," = "nix-shell --command fish -p";
|
"," = "nix-shell --command fish -p";
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
||||||
nswitch = "darwin-rebuild switch -L --flake .#${hostname} --option sandbox false";
|
|
||||||
ntest = "darwin-rebuild test -L --flake .#${hostname} --option sandbox false";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
shellAliases = lib.mergeAttrsList [
|
shellAliases = lib.mergeAttrsList [
|
||||||
{
|
{
|
||||||
rm = "rm -I"; # idiot protection
|
rm = "rm -I"; # idiot protection
|
||||||
tree = "tree -Cph";
|
tree = "tree -Cph";
|
||||||
restow = "cd ~/.dotfiles/ && stow -D . && stow -S . && prevd";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
(lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
|
|
@ -42,21 +21,6 @@
|
||||||
chmod = "chmod --preserve-root";
|
chmod = "chmod --preserve-root";
|
||||||
chown = "chown --preserve-root";
|
chown = "chown --preserve-root";
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.optionalAttrs pkgs.stdenv.isDarwin (
|
|
||||||
let
|
|
||||||
cmds = builtins.concatStringsSep ";";
|
|
||||||
in {
|
|
||||||
reset_launchpad = cmds [
|
|
||||||
"defaults write com.apple.dock ResetLaunchPad -bool true"
|
|
||||||
"killall Dock"
|
|
||||||
];
|
|
||||||
add_spacer_tile = cmds [
|
|
||||||
"defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"small-spacer-tile\";}'"
|
|
||||||
"killall Dock"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
))
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue