mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
feat(fish): add some aliases
feat(fish): add some aliases
This commit is contained in:
+8
-10
@@ -2,6 +2,14 @@
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"please" = "sudo $(fc -ln -1)";
|
||||
"amend" = "git commit --amend";
|
||||
"commit" = "git commit";
|
||||
"add" = "git add .";
|
||||
"ssh" = "kitten ssh";
|
||||
"dev" = "nix develop --command 'fish'";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
# This is commented until a good way of installing themes is found
|
||||
# fish_config theme choose Catppuccin\ Mocha
|
||||
@@ -12,16 +20,6 @@
|
||||
krabby random --no-title --padding-left 2
|
||||
end
|
||||
end
|
||||
|
||||
function weather
|
||||
curl "wttr.in/Bolzano?0?Q?"
|
||||
end
|
||||
|
||||
function dev
|
||||
nix develop --command "fish"
|
||||
end
|
||||
|
||||
alias ssh "kitten ssh"
|
||||
'';
|
||||
plugins = with pkgs.fishPlugins; [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user