diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 18:05:00 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-12-04 20:39:41 +0200 |
| commit | 4d7fbc33a139d6484ae86c45b570b2c99fc737ef (patch) | |
| tree | 46c5788b8ed0eaf6f6581b3b7a87d633d842a8dd /home/fish/default.nix | |
| parent | 7ab57a27c9648b3a8e12f755e03fc84eb50291b4 (diff) | |
| download | nixos-4d7fbc33a139d6484ae86c45b570b2c99fc737ef.tar.zst | |
Test
Diffstat (limited to 'home/fish/default.nix')
| -rw-r--r-- | home/fish/default.nix | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/home/fish/default.nix b/home/fish/default.nix deleted file mode 100644 index 65e033a..0000000 --- a/home/fish/default.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ pkgs, ... }: - -{ - programs.fish = { - enable = true; - shellAliases = { - browser = "${pkgs.chawan}/bin/cha"; - cat = "${pkgs.gat}/bin/gat"; - fj = "${pkgs.forgejo-cli}/bin/fj --host git.relesoft.io"; - gmail = "${pkgs.himalaya}/himalaya envelope list --account gmail --folder gmail/Inbox 'not flag Seen'"; - grep = "${pkgs.ripgrep}/bin/rg"; - http = "${pkgs.xh}/bin/xh"; - journalctl = "${pkgs.systemd}/bin/journalctl --output=short-iso"; - l = "${pkgs.eza}/bin/eza -l --icons --git -a"; - llm = "${pkgs.tenere}/bin/tenere"; - ls = "${pkgs.eza}/bin/eza -a --group-directories-first"; - lt = "${pkgs.eza}/bin/eza --tree --level=2 --long --icons --git"; - ns = "nix-search-tv print | fzf --preview 'nix-search-tv preview {}' --scheme history"; - relesoft = "${pkgs.himalaya}/himalaya envelope list --account relesoft --folder relesoft/Inbox 'not flag Seen'"; - ssh = "TERM=xterm-256color ${pkgs.openssh}/bin/ssh"; - stocks = "${pkgs.ticker}/bin/ticker --config /home/petri/.config/ticker/config.yaml"; - weather = "${pkgs.wthrr}/bin/wthrr --forecast d"; - wifi = "${pkgs.impala}/bin/impala"; - youtube = "${pkgs.pipe-viewer}/bin/pipe-viewer"; - }; - functions = { - doc = '' - ${pkgs.asciidoctor}/bin/asciidoctor --backend xhtml5 --out-file - "$argv[1]"|${pkgs.chawan}/bin/cha -T application/xhtml+xml - ''; - bookmark = '' - set -l Shiori_URL "https://shiori.tammi.cc" - set -l Username "petri" - set -l token (${pkgs.curl}/bin/curl -s -X POST -H "Content-Type: application/json" -d '{"username": "'$Username'", "password": "'$SHIORI_PASSWORD'", "remember": true}' $Shiori_URL/api/v1/auth/login | string match -r '(?<="token":")[^"]*') - ${pkgs.curl}/bin/curl -s -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d '{ "url": "'$argv[1]'", "createArchive": true, "public": 1 }' $Shiori_URL/api/bookmarks - ''; - share = '' - ${pkgs.curl}/bin/curl -X PUT --data-binary @$argv[1] https://bin.tammi.cc >&2 - ''; - import = '' - ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" $argv - ''; - readdoc = "${pkgs.reader}/bin/reader $argv --markdown-output | ${pkgs.moor}/bin/moor --wrap --lang markdown"; - }; - interactiveShellInit = '' - set -g fish_key_bindings fish_vi_key_bindings - - set -g __fish_git_prompt_show_informative_status 1 - - set -g __fish_git_prompt_color_branch magenta --bold - set -g __fish_git_prompt_showupstream "informative" - set -g __fish_git_prompt_char_upstream_ahead "↑ " - set -g __fish_git_prompt_char_upstream_behind "↓ " - set -g __fish_git_prompt_char_upstream_prefix "" - - set -g __fish_git_prompt_char_stagedstate "● " - set -g __fish_git_prompt_char_dirtystate "✚" - set -g __fish_git_prompt_char_untrackedfiles "…" - set -g __fish_git_prompt_char_conflictedstate "✖" - set -g __fish_git_prompt_char_cleanstate "✔" - - set -g __fish_git_prompt_color_dirtystate blue - set -g __fish_git_prompt_color_stagedstate yellow - set -g __fish_git_prompt_color_invalidstate red - set -g __fish_git_prompt_color_untrackedfiles $fish_color_normal - set -g __fish_git_prompt_color_cleanstate green --bold - - set fish_greeting - ${pkgs.fastfetch}/bin/fastfetch - ''; - }; -} |
