mirror of
https://github.com/srid/nixos-config.git
synced 2026-03-01 00:15:17 +08:00
refactor: split shellAlias
This commit is contained in:
parent
93102a2ef7
commit
6f4633f1a1
1 changed files with 6 additions and 2 deletions
|
|
@ -1,10 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
shellAliases = {
|
||||
# These aliases should work on all shells.
|
||||
shellAliasesSimple = {
|
||||
e = "nvim";
|
||||
ee = "nvim \"$(fzf)\"";
|
||||
g = "${pkgs.git}/bin/git";
|
||||
lg = "lazygit";
|
||||
};
|
||||
# These aliases should work on bash/zsh.
|
||||
shellAliases = shellAliasesSimple // {
|
||||
ee = "nvim \"$(fzf)\"";
|
||||
ls = "${pkgs.exa}/bin/exa";
|
||||
l = "ls";
|
||||
ll = "ls -l";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue