Refactor directory structure
This commit is contained in:
62
modules/shells.nix
Normal file
62
modules/shells.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
# custom settings
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
};
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
sessionVariables = {
|
||||
PATH="$PATH:$HOME/.local/usr/bin";
|
||||
PYTHONBREAKPOINT="pudb.set_trace";
|
||||
};
|
||||
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 = "starship";
|
||||
};
|
||||
};
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
bashrcExtra = ''
|
||||
export PATH="$PATH:$HOME/.local/usr/bin";
|
||||
'';
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user