Bonjour ! j'avais déjà posté ce matin avec un problème de ZSH, mais maintenant résolu, mais j'ai encore un problème..
En gros, dans mon code j'ai un %~ (indiquant le chemin complet avec un ~/) mais dans mon terminal on y voit juste un %~, pas le chemin..
et aussi mon 2e problème est le suivant : l'heure est en 12h, et je la voudrai en 24h mais je trouve pas où elle est affichée..
merci de votre aide, je vous mets mon code en spoiler
prompt_elite_help () {
cat <<EOH
This prompt is color-scheme-able. You can invoke it thus:
prompt elite [<text-color> [<punctuation-color>]]
The default colors are red and blue respectively. This theme is
intended for use with a black background.
Recommended fonts for this theme: either UTF-8, or nexus or vga or similar.
If you don't have any of these, the 8-bit characters will probably look
stupid.
EOH
}
prompt_elite_setup () {
local text=${1:-'red'}
local punctuation=${2:-'blue'}
local -A schars
autoload -Uz prompt_special_chars
prompt_special_chars
PS1="%F{$text}$schars[332]$schars[304]%F{$punctuation}(%F{$text}%n%F{$punctuation}@%F{$text}%m%F{$punctuation})%F{$text}-%F{$punctuation}%D{%~}%F{$text}$schars[304]$prompt_newline%F{$text}$schars[300]$schars[304]%F{$punctuation}(%F{$text}%D{%I:%M%P}%F{$punctuation}-:-%F{$text}%D{%m}%F{$punctuation}%F{$text}/%D{%d}%F{$punctuation})%f"
PS2="> "
prompt_opts=(cr subst percent)
}
prompt_elite_preview () {
if (( ! $#* )); then
prompt_preview_theme elite
print
prompt_preview_theme elite green yellow
else
prompt_preview_theme elite "$@"
fi
}
prompt_elite_setup "$@"
lili : Lenovo E540 | ArchLinux abraham : RaspBerry Pi 3 B | ArchLinux isaac : RaspBerry Pi 3 B | ArchLinux Github
The best way to accelerate a computer running Windows is at 9.81m/s²
10 types de geeks, ceux qui savent compter en binaire, et les autres.
D'acc merci beaucoup !
Manque plus que le chemin complet et c'est parfait, mais je trouve toujours pas.. merci à toi !
lili : Lenovo E540 | ArchLinux abraham : RaspBerry Pi 3 B | ArchLinux isaac : RaspBerry Pi 3 B | ArchLinux Github
The best way to accelerate a computer running Windows is at 9.81m/s²
10 types de geeks, ceux qui savent compter en binaire, et les autres.
lili : Lenovo E540 | ArchLinux abraham : RaspBerry Pi 3 B | ArchLinux isaac : RaspBerry Pi 3 B | ArchLinux Github
The best way to accelerate a computer running Windows is at 9.81m/s²
10 types de geeks, ceux qui savent compter en binaire, et les autres.
psycho : Latitude E6430 ; BTRFS over LUKS, UEFI & secureboot schizo : Acer 8942G ; KDE 4, BTRFS over LUKS ; W7 (prend la poussière) toxo : i5-6600K, bspwm, VM W10 en PCI-passthrough deadman : Lenovo Thinkcenter, OpenBSD 6.0-stable popho.be : Kimsufi KS-3, FreeBSD 11.0 Loi de Murphy : Le jour où tu as besoin d'une backup, tu te dis que tu aurais dû en mettre en place
Venez sur IRC en plus du forum !