Compare commits
4 Commits
0a11f2d273
...
8b6c3cb40c
| Author | SHA1 | Date |
|---|---|---|
|
|
8b6c3cb40c | |
|
|
604f19a9ea | |
|
|
d8fbc75bab | |
|
|
8de553fbc9 |
37
README.md
37
README.md
|
|
@ -431,6 +431,7 @@ Powerlevel10k.
|
|||
- [Arch Linux](#arch-linux)
|
||||
- [Alpine Linux](#alpine-linux)
|
||||
- [Fig](#fig)
|
||||
- [NixOS](#nixos)
|
||||
|
||||
### Manual
|
||||
|
||||
|
|
@ -549,6 +550,42 @@ ln -s /usr/share/zsh/plugins/powerlevel10k ~/.local/share/zsh/plugins/
|
|||
Follow the instructions on
|
||||
[this page](https://fig.io/plugins/other/powerlevel10k).
|
||||
|
||||
### NixOS
|
||||
|
||||
**Home Manager**
|
||||
|
||||
```nix
|
||||
programs.zsh = {
|
||||
...
|
||||
plugins = [
|
||||
{
|
||||
name = "zsh-powerlevel10k";
|
||||
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
|
||||
file = "powerlevel10k.zsh-theme";
|
||||
}
|
||||
];
|
||||
|
||||
# NixOS 24.11 or earlier:
|
||||
initExtra = ''
|
||||
source ~/.p10k.zsh
|
||||
'';
|
||||
|
||||
# NixOS 25.05 or later:
|
||||
# initContent = let initExtra = lib.mkOrder 1000 '' [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh ''; in lib.mkMerge [initExtra];
|
||||
};
|
||||
```
|
||||
|
||||
**System wide**
|
||||
```nix
|
||||
programs.zsh = {
|
||||
...
|
||||
promptInit = ''
|
||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
source ~/.p10k.zsh
|
||||
'';
|
||||
};
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
- [For new users](#for-new-users)
|
||||
|
|
|
|||
|
|
@ -272,9 +272,9 @@ case "$gitstatus_kernel" in
|
|||
gitstatus_cxxflags="$gitstatus_cxxflags -I"$brew_prefix"/opt/libiconv/include"
|
||||
fi
|
||||
libgit2_cmake_flags="$libgit2_cmake_flags -DUSE_ICONV=ON"
|
||||
gitstatus_ldlibs="$gitstatus_ldlibs -liconv"
|
||||
gitstatus_ldlibs="$gitstatus_ldlibs -liconv -lz"
|
||||
gitstatus_ldflags="$gitstatus_ldflags -L${workdir}/lib"
|
||||
libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=OFF"
|
||||
libgit2_cmake_flags="$libgit2_cmake_flags -DENABLE_REPRODUCIBLE_BUILDS=OFF -DUSE_BUNDLED_ZLIB=OFF"
|
||||
;;
|
||||
msys*|mingw*)
|
||||
gitstatus_ldflags="$gitstatus_ldflags ${static_pie:--static}"
|
||||
|
|
@ -551,6 +551,7 @@ if [ -z "$gitstatus_cpu" ]; then
|
|||
arm64|aarch64) gitstatus_cpu=armv8-a;;
|
||||
ppc64|ppc64le) gitstatus_cpu=powerpc64le;;
|
||||
riscv64) gitstatus_cpu=rv64imafdc;;
|
||||
mips64) gitstatus_cpu=mips64;;
|
||||
loongarch64) gitstatus_cpu=loongarch64;;
|
||||
x86_64|amd64) gitstatus_cpu=x86-64;;
|
||||
x86) gitstatus_cpu=i586;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue