the unfuckening
This commit is contained in:
parent
443f53cf8f
commit
d1ab22a870
7 changed files with 105 additions and 188 deletions
|
|
@ -28,6 +28,7 @@
|
|||
vim = "nvim";
|
||||
gpl = "git pull";
|
||||
gp = "git push";
|
||||
gpf = "git push --force-with-lease";
|
||||
gd = "git diff";
|
||||
lg = "lazygit";
|
||||
gc = "git commit -v";
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ let
|
|||
})
|
||||
];
|
||||
};
|
||||
|
||||
aliasesJson = pkgs.writeText "shell-aliases.json" (builtins.toJSON config.home.shellAliases);
|
||||
in
|
||||
{
|
||||
options.ragon.xonsh.enable = lib.mkOption { default = false; };
|
||||
|
|
@ -42,6 +44,11 @@ in
|
|||
$PROMPT = '{gitstatus:{RESET}[{}{RESET}] }{sshhostname:{} }{BOLD_GREEN}{short_cwd}{RED}{last_return_code_if_nonzero: [{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{RESET}> '
|
||||
$VI_MODE = True
|
||||
|
||||
|
||||
with open("${aliasesJson}") as f_in:
|
||||
import json
|
||||
aliases |= json.load(f_in)
|
||||
|
||||
# https://xon.sh/xonshrc.html?highlight=nix#use-the-nix-package-manager-with-xonsh
|
||||
import os.path
|
||||
if os.path.exists(f"{$HOME}/.nix-profile") and not __xonsh__.env.get("NIX_PATH"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue