mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 16:00:43 +00:00
Add basic incomplete zsh configuration
This commit is contained in:
parent
9c55c10e57
commit
5b2d36fcbf
5 changed files with 155 additions and 1 deletions
38
home/programs/terminal/shell/zsh/aliases.nix
Normal file
38
home/programs/terminal/shell/zsh/aliases.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
username = config.myOptions.system.username;
|
||||
in
|
||||
{
|
||||
home-manager.users.${username} = {
|
||||
programs.zsh.shellAliases = {
|
||||
# I'm not the greatest typist
|
||||
sl = "ls";
|
||||
mdkir = "mkdir";
|
||||
soruce = "source";
|
||||
suod = "sudo";
|
||||
sduo = "sudo";
|
||||
|
||||
# Directory changing
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../../";
|
||||
"...." = "cd ../../../";
|
||||
"....." = "cd ../../../../";
|
||||
".2" = "cd ../../";
|
||||
".3" = "cd ../../../";
|
||||
".4" = "cd ../../../../";
|
||||
".5" = "cd ../../../../../";
|
||||
|
||||
# Files/Directories utilities
|
||||
mkdir = "mkdir -p";
|
||||
md = "mkdir";
|
||||
fhere = "find . -name";
|
||||
rr = "rm -r";
|
||||
rf = "rm -f";
|
||||
rrf = "rm -rf";
|
||||
vimdiff = "nvim -d";
|
||||
|
||||
# Expand aliases from sudo
|
||||
sudo = "sudo ";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue