pokemon-colorscripts + declarative bash config
This commit is contained in:
@@ -1,36 +1,46 @@
|
|||||||
{ config, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
programs.bash = {
|
programs.bash =
|
||||||
enable = true;
|
let
|
||||||
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
inherit (pkgs) fd fzf;
|
||||||
historyControl = [
|
inherit (inputs.jawz-scripts.packages.x86_64-linux) pokemon-colorscripts;
|
||||||
"erasedups"
|
in
|
||||||
"ignorespace"
|
{
|
||||||
"ignoredups"
|
enable = true;
|
||||||
];
|
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
||||||
shellAliases = {
|
historyControl = [
|
||||||
cp = "cp -i";
|
"erasedups"
|
||||||
mv = "mv -i";
|
"ignorespace"
|
||||||
mkdir = "mkdir -p";
|
"ignoredups"
|
||||||
".." = "cd ..";
|
];
|
||||||
"..." = "cd ../..";
|
shellAliases = {
|
||||||
".3" = "cd ../../..";
|
cp = "cp -i";
|
||||||
".4" = "cd ../../../..";
|
mv = "mv -i";
|
||||||
".5" = "cd ../../../../..";
|
mkdir = "mkdir -p";
|
||||||
c = "cat";
|
".." = "cd ..";
|
||||||
sc = "systemctl --user";
|
"..." = "cd ../..";
|
||||||
jc = "journalctl --user -xefu";
|
".3" = "cd ../../..";
|
||||||
open-gallery = ''
|
".4" = "cd ../../../..";
|
||||||
cd /srv/miniserver/pool/scrapping/JawZ/gallery-dl &&
|
".5" = "cd ../../../../..";
|
||||||
xdg-open "$(fd . ./ Husbands -tdirectory -d 1 | fzf -i)"'';
|
c = "cat";
|
||||||
|
sc = "systemctl --user";
|
||||||
|
jc = "journalctl --user -xefu";
|
||||||
|
open-gallery = ''
|
||||||
|
cd /srv/miniserver/pool/scrapping/JawZ/gallery-dl &&
|
||||||
|
xdg-open "$(${fd}/bin/fd . ./ Husbands -tdirectory -d 1 | ${fzf}/bin/fzf -i)"'';
|
||||||
|
};
|
||||||
|
enableVteIntegration = true;
|
||||||
|
initExtra = ''
|
||||||
|
${pokemon-colorscripts}/bin/pokemon-colorscripts -r --no-title
|
||||||
|
export command_timeout=60
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
enableVteIntegration = true;
|
|
||||||
initExtra = ''
|
|
||||||
$HOME/.local/bin/pokemon-colorscripts -r --no-title
|
|
||||||
export command_timeout=60
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userDirs = {
|
userDirs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user