so long fish

This commit is contained in:
Danilo Reyes 2023-08-19 17:57:14 -06:00
parent 2aedb7039b
commit f6752a6d61
2 changed files with 703 additions and 894 deletions

File diff suppressed because it is too large Load Diff

View File

@ -531,17 +531,6 @@ symbola
prettybat # trans your sourcecode!
#+end_src
** FISH PLUGINS
#+begin_src nix
]) ++ (with pkgs.fishPlugins; [
sponge # keep history clean from typos
fzf-fish # fish command line with fzf keybindings
colored-man-pages # self explanatory
autopair-fish # who has time for a closing bracket?
bass # integrate bash utilities on fish
#+end_src
** GNOME EXTENSIONS
#+begin_src nix
@ -669,93 +658,6 @@ nixos-magic () {
};
#+end_src
*** FISH
#+begin_src nix
programs.fish = {
enable = true;
# useBabelfish = true; This setting doens't work from inside home-manager
shellAliases = {
ls = "exa --icons --group-directories-first --no-permissions --no-user --no-time";
edit = "emacsclient -t";
comic = "download -u jawz -i (cat $lc | fzf --multi --exact -i)";
gallery = "download -u jawz -i (cat $lw | fzf --multi --exact -i)";
open_gallery = "open (cd /mnt/disk2/scrapping/JawZ/gallery-dl && fd . ./ Husbands kemonoparty -tdirectory -d 1 | fzf)";
unique_extensions = "find . -type f | string match -r '([^.\/]+)\$' | sort -u";
cp = "cp -i";
mv = "mv -i";
mkdir = "mkdir -p";
rm = "trash";
".." = "cd ..";
"..." = "cd ../..";
".3" = "cd ../../..";
".4" = "cd ../../../..";
".5" = "cd ../../../../..";
};
shellAbbrs = {
dl = "download -u jawz -i";
ex = "ls";
e = "edit";
c = "cat";
f = "fzf --multi --exact -i";
sc = "systemctl --user";
jc = "journalctl --user -xeu";
};
interactiveShellInit = ''
#+end_src
#+begin_src fish
function fish_greeting
~/.local/bin/pokemon-colorscripts -r --no-title
end
# Lists
set -l list_root ${config.home.homeDirectory}/.config/jawz/lists/jawz
set lw $list_root/watch.txt
set li $list_root/instant.txt
set lc $list_root/comic.txt
set command_timeout = 30
set GPG_TTY (tty)
# Set EMACS/VI mode
function fish_user_key_bindings
# fish_default_key_bindings
fish_vi_key_bindings
end
#+end_src
#+begin_src nix
'';
#+end_src
#+begin_src nix
functions = {
nixos-magic = ''
#+end_src
#+begin_src fish
set -l nix_file "$HOME/Development/NixOS/configuration.nix"
set -l hardware_file "$HOME/Development/NixOS/hardware-configuration.nix"
nixfmt $nix_file
nixfmt $hardware_file
sudo nixos-rebuild switch -I nixos-config=$nix_file
#+end_src
#+begin_src nix
'';
mkcd = ''
#+end_src
#+begin_src fish
mkdir -pv $argv
cd $argv
#+end_src
#+begin_src nix
'';
};
};
#+end_src
*** OTHER
#+begin_src nix
@ -957,7 +859,6 @@ of some services.
#+begin_src nix
programs = {
fish.enable = true;
fzf.fuzzyCompletion = true;
mtr.enable = true;
neovim = {
@ -1100,10 +1001,10 @@ systemd.user.services = {
"manage_library" = {
enable = true;
restartIfChanged = true;
description = "Run the manage library fish script";
description = "Run the manage library bash script";
wantedBy = [ "default.target" ];
path = [
pkgs.fish
pkgs.bash
manage_library
];
serviceConfig = {