Create zsh aliases

This commit is contained in:
Ethan Lane 2024-07-07 21:27:47 +01:00
parent c4708a6fbc
commit 74dfa6ebcc
2 changed files with 18 additions and 1 deletions

View file

@ -74,6 +74,7 @@ in {
wget
xclip
yarn
yt-dlp
zip
zsh
zsh-powerlevel10k

View file

@ -73,8 +73,24 @@
enable = true;
remotePlay.openFirewall = true;
};
programs.zsh = {
enable = true;
shellAliases = {
lss = "ls -lah";
gss = "git status -s";
gaa = "git add -A";
gcm = "git commit -m";
gco = "git checkout";
yt-mp3 = "yt-mp3 -xi --audio-format mp3";
yt-mp3-meta = "yt-mp3 -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata";
yt-mp3-meta-cookies = "yt-mp3 -xi --audio-format mp3 --parse-metadata \"playlist_index:%(track_number)s\" --add-metadata --cookies-from-browser firefox";
};
};
programs.zsh.enable = true;
programs.neovim.defaultEditor = true;
fonts = {