20 lines
389 B
Nix
20 lines
389 B
Nix
{
|
|
programs.fish.functions = {
|
|
mkcd = {
|
|
body = ''
|
|
if test (count $argv) -eq 0
|
|
echo "Usage: mkcd <directory>"
|
|
return 1
|
|
end
|
|
|
|
mkdir -p $argv[1]
|
|
and cd $argv[1]
|
|
'';
|
|
};
|
|
};
|
|
programs.fish.interactiveShellInit = ''
|
|
if test -f $HOME/.config/fish/kube.fish
|
|
source $HOME/.config/fish/kube.fish
|
|
end
|
|
'';
|
|
} |