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