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 wget
xclip xclip
yarn yarn
yt-dlp
zip zip
zsh zsh
zsh-powerlevel10k zsh-powerlevel10k

View file

@ -74,7 +74,23 @@
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
}; };
programs.zsh.enable = 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.neovim.defaultEditor = true; programs.neovim.defaultEditor = true;
fonts = { fonts = {