58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ pkgs, config, ... }:
|
|
{
|
|
home.sessionVariables = {
|
|
SHELL = "${pkgs.zsh}/bin/zsh";
|
|
};
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
syntaxHighlighting = {
|
|
enable = true;
|
|
highlighters = [ "main" "brackets" "cursor" "root" "line" ];
|
|
};
|
|
autosuggestion.enable = true;
|
|
autocd = true;
|
|
sessionVariables = {
|
|
PATH="$PATH:$HOME/.local/usr/bin";
|
|
PYTHONBREAKPOINT="pudb.set_trace";
|
|
};
|
|
shellAliases = {
|
|
urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'";
|
|
urldecode = "python3 -c 'import sys, urllib.parse as ul; print(il.unquote_plus(sys.stdin.read()))'";
|
|
ls = "eza";
|
|
cat = "bat";
|
|
l = "ls -lh --color=always --group-directories-first";
|
|
la = "ls -lah --color=always --group-directories-first";
|
|
};
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [
|
|
"git"
|
|
"colored-man-pages"
|
|
"colorize"
|
|
"command-not-found"
|
|
"compleat"
|
|
"dirhistory"
|
|
"fzf"
|
|
"git-auto-fetch"
|
|
"git-extras"
|
|
"git-prompt"
|
|
"gitignore"
|
|
"gpg-agent"
|
|
"history"
|
|
"jsontools"
|
|
"man"
|
|
"nmap"
|
|
"pip"
|
|
"python"
|
|
"ssh-agent"
|
|
"sudo"
|
|
"tmux"
|
|
"vi-mode"
|
|
"zsh-navigation-tools"
|
|
];
|
|
theme = "fox";
|
|
};
|
|
};
|
|
}
|