ey im xonshing here!
This commit is contained in:
parent
fad3683ffa
commit
648803b90c
5 changed files with 129 additions and 92 deletions
|
|
@ -89,10 +89,10 @@
|
|||
nushell
|
||||
fish
|
||||
powershell
|
||||
|
||||
|
||||
# Languages
|
||||
python3
|
||||
|
||||
|
||||
# Virtualization
|
||||
podman
|
||||
]; # end systemPackages
|
||||
|
|
@ -125,14 +125,69 @@
|
|||
command-not-found.enable = true;
|
||||
xonsh = {
|
||||
enable = true;
|
||||
extraPackages = ps: with ps; [
|
||||
extraPackages = ps: with ps; [
|
||||
pyperclip
|
||||
xonsh.xontribs.xonsh-direnv
|
||||
pkgs-unstable.xonsh-xontrib.xontrib-abbrevs
|
||||
pkgs-unstable.xonsh-xontrib.xontrib-fzf-completions
|
||||
pkgs-unstable.xonsh-xontrib.xontrib-fish-completer
|
||||
pkgs-unstable.xonsh-xontrib.xontrib-clp
|
||||
pkgs-unstable.xonsh-xontrib.xontrib-bashisms
|
||||
];
|
||||
};
|
||||
};
|
||||
pkgs.nur.repos.xonsh-xontribs.xontrib-fish-completer
|
||||
pkgs.nur.repos.xonsh-xontribs.xontrib-abbrevs
|
||||
pkgs.nur.repos.xonsh-xontribs.xontrib-clp
|
||||
pkgs.nur.repos.xonsh-xontribs.xontrib-bashisms
|
||||
(
|
||||
ps.buildPythonPackage
|
||||
rec {
|
||||
name = "xontrib-fzf-completions";
|
||||
version = "v0.0.2";
|
||||
format = "pyproject";
|
||||
nativeBuildInputs = [ ps.setuptools ps.setuptools-scm ps.wheel ];
|
||||
propagatedBuildInputs = [ ps.xonsh ];
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "doronz88";
|
||||
repo = "${name}";
|
||||
rev = "${version}";
|
||||
sha256 = "sha256-1z5xHX4Psevn8686QkwIzv/LOJ5IMJc2nQ5Hg/2svTc=";
|
||||
};
|
||||
meta = {
|
||||
homepage = "https://github.com/doronz88/xontrib-fzf-completions";
|
||||
description = "fuzzy completions for xonsh";
|
||||
license = pkgs.lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
)
|
||||
]; # end extraPackages
|
||||
config = ''
|
||||
$XONSH_COLOR_STYLE = 'native'
|
||||
$PROMPT = '{YELLOW}{env_name}{RESET}{BOLD_GREEN}{user}@{hostname}{BOLD_BLUE} {cwd}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
|
||||
xontrib load coreutils
|
||||
xontrib load fish_completer
|
||||
xontrib load direnv
|
||||
xontrib load fzf-completions
|
||||
xontrib load clp
|
||||
xontrib load bashisms
|
||||
|
||||
#xontrib load abbrevs #relies on xonsh.ptk_shell which was deprecated in 0.13
|
||||
#from xonsh.built_ins import XSH
|
||||
#XSH.env['fzf_history_binding'] = "c-r" # Ctrl+R
|
||||
#XSH.env['fzf_ssh_binding'] = "c-s" # Ctrl+S
|
||||
#XSH.env['fzf_file_binding'] = "c-t" # Ctrl+T
|
||||
#XSH.env['fzf_dir_binding'] = "c-g" # Ctrl+G
|
||||
|
||||
aliases["tsla-fan"] = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0"
|
||||
aliases["nixoss"] = "sudo nixos-rebuild switch --flake .#${config.networking.hostName}"
|
||||
aliases["nixost"] = "sudo nixos-rebuild test --flake .#${config.networking.hostName}"
|
||||
aliases["nixosdb"] = "sudo nixos-rebuild dry-build --flake .#${config.networking.hostName}"
|
||||
aliases["devt"] = "devenv test"
|
||||
aliases["devtas"] = "devenv tasks list"
|
||||
aliases["devtar"] = "devenv tasks run"
|
||||
aliases["devs"] = "devenv shell"
|
||||
aliases["devi-python"] = "nix flake init -t templates#python"
|
||||
aliases["weboot"] = "bash -c 'nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000 && reboot'"
|
||||
aliases["ls"] = "exa"
|
||||
aliases["ll"] = "exa -lah"
|
||||
aliases["grep"] = "rg"
|
||||
aliases["cat"] = "bat -p"
|
||||
|
||||
'';
|
||||
}; # end xonsh
|
||||
}; # end programs
|
||||
} #end file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue