Skip to content

Commit

Permalink
feat(fish): Add vimish shell aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Aug 1, 2024
1 parent 359f6aa commit d9cd089
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 7 additions & 0 deletions home-manager/modules/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
}];

shellAliases = {
":q" = "exit";
":Q" = "exit";
":e" = "nvim";
":vsp" = "wezterm cli split-pane --right";
":sp" = "wezterm cli split-pane --bottom";

f = "wezterm cli get-text | fzf | copy";
copy = if isDarwin then "pbcopy" else "xclip -selection clipboard";
paste = if isDarwin then "pbpaste" else "xlip -o -selection clipboard";
cat = "bat";
Expand Down
9 changes: 0 additions & 9 deletions home-manager/modules/nvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@
"${pkgs.sqlite.out}/lib/libsqlite3.dylib";
};

programs.fish.shellAliases = {
# lol, sometimes I'm stupid
":q" = "exit";
":Q" = "exit";
# I swear I'm an idiot sometimes
":e" = "nvim";
update-nvim-plugins = "nvim --headless '+Lazy! sync' +qa";
};

xdg.configFile = {
ripgrep_ignore.text = ''
.git/
Expand Down

0 comments on commit d9cd089

Please sign in to comment.