mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-25 02:11:00 +01:00
19 lines
568 B
Nix
19 lines
568 B
Nix
{ ... }: {
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
bashrcExtra = ''
|
|
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
|
|
'';
|
|
|
|
shellAliases = {
|
|
k = "kubectl";
|
|
vim = "nvim";
|
|
|
|
urldecode = "python3 -c 'import sys, urllib.parse as ul; print(ul.unquote_plus(sys.stdin.read()))'";
|
|
urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'";
|
|
httpproxy = "export https_proxy=http://127.0.0.1:7890; export http_proxy=http://127.0.0.1:7890;";
|
|
};
|
|
};
|
|
}
|