sdfg
This commit is contained in:
20
modules/home/fish/functions.nix
Normal file
20
modules/home/fish/functions.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user