Add compatability for zsh to gitprompt
This helps with the shell shifting the cursor around
This commit is contained in:
parent
721ce3c069
commit
e86768299c
2 changed files with 23 additions and 2 deletions
21
devshells/texlive-with-pygments/flake.nix
Normal file
21
devshells/texlive-with-pygments/flake.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
description = "Flake for TeXlive with python pygments";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
inputs.systems.url = "github:nix-systems/default";
|
||||
inputs.flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
inputs.systems.follows = "systems";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell { packages = with pkgs; [ texliveFull python3Packages.pygments ]; };
|
||||
}
|
||||
);
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{config, pkgs, pkgs-unstable, ...}: {
|
||||
{lib, config, pkgs, pkgs-unstable, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
initExtra = ''
|
||||
setopt promptsubst
|
||||
export PROMPT='%F{12}[%f%F{10}%n%f%F{12}@%f%F{white}%m%f%F{12}]%f%F{white}:%f %F{white}%~%f%F{12}>%b$(${pkgs-unstable.gitprompt-rs}/bin/gitprompt-rs)%f%F{10}%(!.#.$)%f '
|
||||
export PROMPT='%F{12}[%f%F{10}%n%f%F{12}@%f%F{white}%m%f%F{12}]%f%F{white}:%f %F{white}%~%f%F{12}>%b$(${lib.getExe pkgs-unstable.gitprompt-rs} zsh)%f%F{10}%(!.#.$)%f '
|
||||
unsetopt beep
|
||||
bindkey '^R' history-incremental-search-backward
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue