╰─➜ man yay
sh: line 1: bat: command not found
man: command exited with status 127: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=yay(8) sh -c col -bx | bat -l man -p
Dernière modification par Breizil29 le mer. 01 nov. 2023, 01:10, modifié 1 fois.
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610 - Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610 - Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
J'avais édité mon message avant que tu répondes, et effectivement tu as la variable d'environnement MANPAGER qui pose problème !
Elle est définie quelque part... A toi de trouver où...
╰─➜ man yay sh: line 1: bat: command not found
man: command exited with status 127: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=yay(8) sh -c col -bx | bat -l man -p
J'ai intallé "bat"
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610 - Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610 - Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
Normalement il n'est pas nécessaire de définir ces variables d'environnements. Donc actuellement, ce que tu fait pour zsh, c'est que tu surcharges MANPAGER, qui soit être défini ailleurs (ce qui n'est pas non plus normal), et donc tu caches le problème (pour zsh). Il n'est vraiment pas nécessaire de définir cette variable d'environnement quelque soit l'emplacement.
Donc tu dois trouver où MANPAGER est défini. Donc depuis un shell zsh execute ceci (avec ton utilisateur courant, pas en root) :
Donc déjà ton problème pour le shell fish vient de : /home/gg/.config/fish/config.fish
Et pour zsh, qu'est ce qui se passe si MANPAGER et PAGER ne sont pas défini ? Donc si tu désactives les 2 export de ton .zshenv et que tu ouvres un nouveau terminal, que donne la sortie de man yay ou man man
/home/gg/.config/fish/config.fish :
## Set values
# Hide welcome message
set fish_greeting
set VIRTUAL_ENV_DISABLE_PROMPT "1"
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
man yay
sh: line 1: bat: command not found
man: command exited with status 127: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page yay(8) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=yay(8) sh -c col -bx | bat -l man -p
man man 3
sh: line 1: bat: command not found
man: command exited with status 127: sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | LESS=-ix8RmPm Manual page man(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page man(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=man(1) sh -c col -bx | bat -l man -p
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610 - Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610 - Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
benjarobin a écrit : ↑mer. 01 nov. 2023, 16:20
Tu dois supprimer d'abord la ligne qui pose problème dans /home/gg/.config/fish/config.fish, ligne que tu as ajoutée !
Ce n'est pas moi qui est créé cette config, elle vient de "Garuda-Qtile"
C'est supprimé et j'ai remis mon zshenv comme au début et la commande "man" fonctionne dans les 2 shells.
Pour moi c'est bon.
Merci benjarobin
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610 - Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610 - Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620