Compare commits
3 commits
ade6f3640a
...
31c274fa7a
Author | SHA1 | Date | |
---|---|---|---|
31c274fa7a | |||
84eab85fa3 | |||
e066089547 |
3 changed files with 46 additions and 0 deletions
|
@ -16,6 +16,7 @@ in {
|
||||||
[
|
[
|
||||||
# general
|
# general
|
||||||
babelfish
|
babelfish
|
||||||
|
nix-your-shell # make nix-shell / nix develop use fish
|
||||||
|
|
||||||
# for fish_greeting()
|
# for fish_greeting()
|
||||||
marleyos.figlet-xero-fonts
|
marleyos.figlet-xero-fonts
|
||||||
|
@ -63,6 +64,12 @@ in {
|
||||||
set -g fish_key_bindings fish_vi_key_bindings
|
set -g fish_key_bindings fish_vi_key_bindings
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
interactiveShellInit =
|
||||||
|
# fish
|
||||||
|
''
|
||||||
|
${lib.getExe pkgs.nix-your-shell} fish | source
|
||||||
|
'';
|
||||||
|
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
cp = "cp -iv";
|
cp = "cp -iv";
|
||||||
mkdir = "mkdir -pv";
|
mkdir = "mkdir -pv";
|
||||||
|
|
|
@ -23,6 +23,17 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
os.editPreset = "nvim-remote";
|
os.editPreset = "nvim-remote";
|
||||||
|
|
||||||
|
customCommands = [
|
||||||
|
{
|
||||||
|
key = "C";
|
||||||
|
command = "cz c";
|
||||||
|
description = "commit with commitizen";
|
||||||
|
context = "files";
|
||||||
|
loadingText = "opening commitizen tool";
|
||||||
|
subprocess = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
28
packages/cz-conventional-gitmoji/default.nix
Normal file
28
packages/cz-conventional-gitmoji/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
python3Packages,
|
||||||
|
fetchPypi,
|
||||||
|
}:
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
|
pname = "cz-conventional-gitmoji";
|
||||||
|
version = "0.6.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "test";
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = with python3Packages; [
|
||||||
|
hatchling
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
|
commitizen
|
||||||
|
attrs
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A commitizen plugin that combines gitmoji and conventional commits.";
|
||||||
|
homepage = "https://github.com/ljnsn/cz-conventional-gitmoji";
|
||||||
|
mainProgram = "cz_gitmoji";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue