انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید




نویسنده موضوع: مشکل در نمایش فلش کوچک در شل zsh [حل شد]  (دفعات بازدید: 1500 بار)

0 کاربر و 2 مهمان درحال مشاهده موضوع.

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
مشکل در نمایش فلش کوچک در شل zsh [حل شد]
« : 04 امرداد 1399، 05:27 ب‌ظ »
سلام من از به تازگی آرچ رو نصب کردم و از دسکتاپ xfce استفاده میکنم. شل دیفالت رو به  zsh  تغییر دادم. بعد oh my zsh  رو هم نصب کردم. ولی وقتی داخل شل zsh هستم بجای علامت فلش کوچک یک مربع نشون داده میشه. برای رفعش چکار میتونم بکنم؟
« آخرین ویرایش: 08 امرداد 1399، 12:40 ق‌ظ توسط ariaphy »
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین هومان

  • High Hero Member
  • *
  • ارسال: 1527
  • جنسیت : پسر
  • آرچ + گنوم
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #1 : 04 امرداد 1399، 07:21 ب‌ظ »
locale رو نزاشتی روی utf-8

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #2 : 04 امرداد 1399، 07:33 ب‌ظ »
منظورتون از locale چی هست؟
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین esmaeelE

  • ناظر انجمن
  • *
  • ارسال: 1258
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #3 : 04 امرداد 1399، 08:28 ب‌ظ »

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #4 : 04 امرداد 1399، 09:52 ب‌ظ »
 موقع نصب  داخل  locale.conf  اون عبارت LANG=en_US.UTF-8  رو نوشته بودم. الن هم چک کردم داخلش همین بود.
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین M!lad

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 1757
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #5 : 04 امرداد 1399، 10:04 ب‌ظ »
باید در اون فایل خط مذکور وجود داشته باشه. سپس locale-gen رو اجرا کرده باشید که locale فعال شده رو تولید کنه. در نهایت هم :

localectl set-locale LANG=en_US.UTF-8
..I feel no fault for the fault I feel..

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #6 : 04 امرداد 1399، 10:19 ب‌ظ »
باید در اون فایل خط مذکور وجود داشته باشه. سپس locale-gen رو اجرا کرده باشید که locale فعال شده رو تولید کنه. در نهایت هم :

localectl set-locale LANG=en_US.UTF-8
این کارها رو انجام دادم ولی بازم مشکل حل نشد
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین Arthur Scherbius

  • Jr. Member
  • *
  • ارسال: 89
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #7 : 05 امرداد 1399، 07:41 ب‌ظ »
باید در اون فایل خط مذکور وجود داشته باشه. سپس locale-gen رو اجرا کرده باشید که locale فعال شده رو تولید کنه. در نهایت هم :

localectl set-locale LANG=en_US.UTF-8
این کارها رو انجام دادم ولی بازم مشکل حل نشد
از تو دایرکتوری هوم برید اینجا و خروجی ls  رو بزارید.oh_my_zsh/themes/

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #8 : 06 امرداد 1399، 01:45 ق‌ظ »
از تو دایرکتوری هوم برید اینجا و خروجی ls  رو بزارید.oh_my_zsh/themes/
خروجی دستور
ls ./.oh-my-zsh/themesبه صورت زیر هست
3den.zsh-theme    kennethreitz.zsh-theme
adben.zsh-theme    kiwi.zsh-theme
af-magic.zsh-theme    kolo.zsh-theme
afowler.zsh-theme    kphoen.zsh-theme
agnoster.zsh-theme    lambda.zsh-theme
alanpeabody.zsh-theme    linuxonly.zsh-theme
amuse.zsh-theme    lukerandall.zsh-theme
apple.zsh-theme    macovsky-ruby.zsh-theme
arrow.zsh-theme    macovsky.zsh-theme
aussiegeek.zsh-theme    maran.zsh-theme
avit.zsh-theme    mgutz.zsh-theme
awesomepanda.zsh-theme    mh.zsh-theme
bira.zsh-theme    michelebologna.zsh-theme
blinks.zsh-theme    mikeh.zsh-theme
bureau.zsh-theme    miloshadzic.zsh-theme
candy-kingdom.zsh-theme    minimal.zsh-theme
candy.zsh-theme    mira.zsh-theme
clean.zsh-theme    mlh.zsh-theme
cloud.zsh-theme    mortalscumbag.zsh-theme
crcandy.zsh-theme    mrtazz.zsh-theme
crunch.zsh-theme    murilasso.zsh-theme
cypher.zsh-theme    muse.zsh-theme
dallas.zsh-theme    nanotech.zsh-theme
darkblood.zsh-theme    nebirhos.zsh-theme
daveverwer.zsh-theme    nicoulaj.zsh-theme
dieter.zsh-theme    norm.zsh-theme
dogenpunk.zsh-theme    obraun.zsh-theme
dpoggi.zsh-theme    peepcode.zsh-theme
dstufft.zsh-theme    philips.zsh-theme
dst.zsh-theme    pmcgee.zsh-theme
duellj.zsh-theme    pygmalion-virtualenv.zsh-theme
eastwood.zsh-theme    pygmalion.zsh-theme
edvardm.zsh-theme    random.zsh-theme
emotty.zsh-theme    re5et.zsh-theme
essembeh.zsh-theme    refined.zsh-theme
evan.zsh-theme    rgm.zsh-theme
fino-time.zsh-theme    risto.zsh-theme
fino.zsh-theme    rixius.zsh-theme
fishy.zsh-theme    rkj-repos.zsh-theme
flazz.zsh-theme    rkj.zsh-theme
fletcherm.zsh-theme    robbyrussell.zsh-theme
fox.zsh-theme    sammy.zsh-theme
frisk.zsh-theme    simonoff.zsh-theme
frontcube.zsh-theme    simple.zsh-theme
funky.zsh-theme    skaro.zsh-theme
fwalch.zsh-theme    smt.zsh-theme
gallifrey.zsh-theme    Soliah.zsh-theme
gallois.zsh-theme    sonicradish.zsh-theme
garyblessington.zsh-theme  sorin.zsh-theme
gentoo.zsh-theme    sporty_256.zsh-theme
geoffgarside.zsh-theme    steeef.zsh-theme
gianu.zsh-theme    strug.zsh-theme
gnzh.zsh-theme    sunaku.zsh-theme
gozilla.zsh-theme    sunrise.zsh-theme
half-life.zsh-theme    superjarin.zsh-theme
humza.zsh-theme    suvash.zsh-theme
imajes.zsh-theme    takashiyoshida.zsh-theme
intheloop.zsh-theme    terminalparty.zsh-theme
itchy.zsh-theme    theunraveler.zsh-theme
jaischeema.zsh-theme    tjkirch_mod.zsh-theme
jbergantine.zsh-theme    tjkirch.zsh-theme
jispwoso.zsh-theme    tonotdo.zsh-theme
jnrowe.zsh-theme    trapd00r.zsh-theme
jonathan.zsh-theme    wedisagree.zsh-theme
josh.zsh-theme    wezm+.zsh-theme
jreese.zsh-theme    wezm.zsh-theme
jtriley.zsh-theme    wuffers.zsh-theme
juanghurtado.zsh-theme    xiong-chiamiov-plus.zsh-theme
junkfood.zsh-theme    xiong-chiamiov.zsh-theme
kafeitu.zsh-theme    ys.zsh-theme
kardan.zsh-theme    zhann.zsh-theme
کلا ohmyzsh رو هم نصب نکنم اون مشکلی که علامت فلش رو نمیشناسه وجود داره
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین Arthur Scherbius

  • Jr. Member
  • *
  • ارسال: 89
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #9 : 06 امرداد 1399، 04:00 ب‌ظ »
این دستورو بزن یه فایل باز می کنه محتویات فایل ر کپی کن اینجا
sudo vipw

آفلاین ariaphy

  • Full Member
  • *
  • ارسال: 142
  • جنسیت : پسر
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #10 : 06 امرداد 1399، 06:32 ب‌ظ »
این دستورو بزن یه فایل باز می کنه محتویات فایل ر کپی کن اینجا
sudo vipw
چه دلیلی داره خروجی این دستور رو بفرستم؟
The world is a dangerous place,not because of those who are evil, but because of those who look and do nothing

آفلاین Arthur Scherbius

  • Jr. Member
  • *
  • ارسال: 89
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #11 : 06 امرداد 1399، 06:47 ب‌ظ »
این دستورو بزن یه فایل باز می کنه محتویات فایل ر کپی کن اینجا
sudo vipw
چه دلیلی داره خروجی این دستور رو بفرستم؟
فایل /etc/passwd رو باز می کنه از اون باید ببینیم چه شلی برا هر یوزر تنظیم شده

آفلاین Arthur Scherbius

  • Jr. Member
  • *
  • ارسال: 89
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #12 : 06 امرداد 1399، 06:53 ب‌ظ »
این دستورو بزن یه فایل باز می کنه محتویات فایل ر کپی کن اینجا
sudo vipw
چه دلیلی داره خروجی این دستور رو بفرستم؟
التبه اینن فقط برا مطمعن شدنه بعد این که مطمعن شدی شل همه ی یوزر ها (هم روت هم مال خودت) رو زد اس اچ تنظیم شده باید فایل .zshrc رو باز کنی و اینو توش کپی کنی(به حای یوزر نیم اسم فولدر هوم یوزرتو بزن)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/home/username/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-syntax-highlighting vim-interaction)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

آفلاین Arthur Scherbius

  • Jr. Member
  • *
  • ارسال: 89
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #13 : 06 امرداد 1399، 06:55 ب‌ظ »
باید در اون فایل خط مذکور وجود داشته باشه. سپس locale-gen رو اجرا کرده باشید که locale فعال شده رو تولید کنه. در نهایت هم :

localectl set-locale LANG=en_US.UTF-8
این کارها رو انجام دادم ولی بازم مشکل حل نشد
یدونه اسکرین شات هم از ترمینالت بنداز که اون مربع رو ببینیم

آفلاین M!lad

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 1757
پاسخ : مشکل در نمایش فلش کوچک در شل zsh
« پاسخ #14 : 06 امرداد 1399، 07:54 ب‌ظ »
برای دیدن اینکه در passwd چه shellای برای کاربر تنظیم شده استفاده از دستوری مثل این منطقی‌تر هست:

getent passwd $USER | awk -F: '{print $7}'
یا مثلا:

$ awk -F: -v user="$USER" '$1 == user {print $NF}' /etc/passwd
/bin/bash

من از zsh استفاده نمی‌کنم نمی‌تونم خیلی راهنمایی کنم. فقط مطمئن بشین locale درست تنظیم شده. برای اطمینان می‌تونید خروجی این دستور رو اینجا قرار بدید:

localectl status
و فونت‌های لازم رو دارید. یک تصویر هم همونطور که گفتند قرار بدید میتونه کمک کنه بهتر راهنمایی کنیم.
« آخرین ویرایش: 06 امرداد 1399، 07:57 ب‌ظ توسط M!lad »
..I feel no fault for the fault I feel..