mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-28 11:10:42 +01:00
update: modules/cli/fish.nix
This commit is contained in:
@@ -3,11 +3,13 @@
|
|||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
loginShellInit = ''
|
loginShellInit = # fish
|
||||||
|
''
|
||||||
fish_add_path --move --prepend --path "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
|
fish_add_path --move --prepend --path "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = # fish
|
||||||
|
''
|
||||||
# no dum greeting
|
# no dum greeting
|
||||||
set fish_greeting ""
|
set fish_greeting ""
|
||||||
|
|
||||||
@@ -21,7 +23,8 @@
|
|||||||
functions = {
|
functions = {
|
||||||
edit_dotfile = {
|
edit_dotfile = {
|
||||||
description = "Edit config file, reload, commit and push";
|
description = "Edit config file, reload, commit and push";
|
||||||
body = ''
|
body = # fish
|
||||||
|
''
|
||||||
set -l config_dir "$HOME/.config/home-manager"
|
set -l config_dir "$HOME/.config/home-manager"
|
||||||
set -l file
|
set -l file
|
||||||
|
|
||||||
@@ -59,19 +62,23 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ls = {
|
ls = {
|
||||||
body = "eza --long --icons --group-directories-first --git $argv";
|
body = # fish
|
||||||
|
"eza --long --icons --group-directories-first --git $argv";
|
||||||
};
|
};
|
||||||
|
|
||||||
lst = {
|
lst = {
|
||||||
body = "eza --long --icons --color --git --tree $argv";
|
body = # fish
|
||||||
|
"eza --long --icons --color --git --tree $argv";
|
||||||
};
|
};
|
||||||
|
|
||||||
cp_mail = {
|
cp_mail = {
|
||||||
body = "pandoc $argv -t html |wl-copy -t text/html";
|
body = # fish
|
||||||
|
"pandoc $argv -t html |wl-copy -t text/html";
|
||||||
};
|
};
|
||||||
|
|
||||||
update = {
|
update = {
|
||||||
body = ''
|
body = # fish
|
||||||
|
''
|
||||||
echo "===System update==="
|
echo "===System update==="
|
||||||
|
|
||||||
if not type -q yay
|
if not type -q yay
|
||||||
|
|||||||
Reference in New Issue
Block a user