Compare commits
2 commits
c117d1caed
...
9f3a8ac2bd
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f3a8ac2bd | |||
| 4feee73b8e |
4 changed files with 29 additions and 13 deletions
26
home/aliases/default.nix
Normal file
26
home/aliases/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.aliases;
|
||||
in
|
||||
{
|
||||
options.my.home.aliases = with lib; {
|
||||
enable = my.mkDisableOption "shell aliases configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home = {
|
||||
shellAliases = {
|
||||
# I like pretty colors
|
||||
diff = "diff --color=auto";
|
||||
grep = "grep --color=auto";
|
||||
egrep = "egrep --color=auto";
|
||||
fgrep = "fgrep --color=auto";
|
||||
ls = "ls --color=auto";
|
||||
|
||||
# Well-known ls aliases
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./aliases
|
||||
./atuin
|
||||
./bat
|
||||
./bluetooth
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ set noswapfile
|
|||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Set the minimal amount of lignes under and above the cursor for context
|
||||
set scrolloff=5
|
||||
" More stable splits
|
||||
set splitkeep=screen
|
||||
" Always show status line
|
||||
set laststatus=2
|
||||
" Enable Doxygen highlighting
|
||||
|
|
|
|||
|
|
@ -88,19 +88,6 @@ in
|
|||
AGKOZAK_LEFT_PROMPT_ONLY = 1;
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
# I like pretty colors
|
||||
diff = "diff --color=auto";
|
||||
grep = "grep --color=auto";
|
||||
egrep = "egrep --color=auto";
|
||||
fgrep = "fgrep --color=auto";
|
||||
ls = "ls --color=auto";
|
||||
|
||||
# Well-known ls aliases
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
};
|
||||
|
||||
# Enable VTE integration
|
||||
enableVteIntegration = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue