forked from foxora/nix
#1 hater of infinite recursion
This commit is contained in:
parent
43b04c3f8a
commit
a5bb1d1cc1
31 changed files with 946 additions and 851 deletions
|
|
@ -1,8 +1,4 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
{upkgs, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
|
@ -12,22 +8,22 @@ in
|
|||
plugins = [
|
||||
{
|
||||
name = "vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
src = upkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}
|
||||
];
|
||||
|
||||
initContent = ''
|
||||
# yazi wrapper!!!
|
||||
function yazi() {
|
||||
local tmp="$(mktemp -p "/run/user/$UID" -t "yazi-cwd.XXXXXX")" cwd
|
||||
command yazi "$@" --cwd-file="$tmp"
|
||||
IFS= read -r -d ''' cwd < "$tmp"
|
||||
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
# yazi wrapper!!!
|
||||
function yazi() {
|
||||
local tmp="$(mktemp -p "/run/user/$UID" -t "yazi-cwd.XXXXXX")" cwd
|
||||
command yazi "$@" --cwd-file="$tmp"
|
||||
IFS= read -r -d ''' cwd < "$tmp"
|
||||
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
hyfetch # oh i'm so gay!! :3
|
||||
hyfetch # oh i'm so gay!! :3
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
|
|
@ -87,4 +83,3 @@ in
|
|||
theme = "agnoster";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue