refactoring and nushell
This commit is contained in:
parent
359e58f469
commit
396aee7db9
10 changed files with 301 additions and 92 deletions
30
modules/home/shell-conf/fish/fish.nix
Normal file
30
modules/home/shell-conf/fish/fish.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"em" = "emacsclient -n -r";
|
||||
"mkdir" = "mkdir -pv";
|
||||
"gtr" = "gtrash -r";
|
||||
"rm" = "gtrash put";
|
||||
};
|
||||
|
||||
# change fzf variable search to C-M-v
|
||||
interactiveShellInit = ''
|
||||
bind --erase \ct
|
||||
fzf_configure_bindings --variables=\e\cv
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "upto";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Markcial";
|
||||
repo = "upto";
|
||||
rev = "2d1f35453fb55747d50da8c1cb1809840f99a646";
|
||||
sha256 = "sha256-Lv2XtP2x9dkIkUUjMBWVpAs/l55Ztu7gIjKYH6ZzK4s=";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
function lg --wraps=lazygit --description 'alias lg=lazygit'
|
||||
lazygit $argv
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue