深度终端字体颜色是否可以自定义
Tofloor
poster avatar
justforcon
deepin
2016-12-23 00:55
Author
求助:如题,是我没找到还是本来就没这功能?
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2016-12-23 01:40
#1
切换主题或者自己修改配置文件
Reply View the author
avatar
wangyong
deepin
2016-12-23 05:00
#2
终端右上角菜单中可以更换40种主题, 对于绝大多数挑剔党都是够用的。
如果需要自己配置, 可以直接打开 ~/.config/deepin/deepin-terminal/config.conf 里面 color 开头的行来调节颜色细节
Reply View the author
avatar
isunny
deepin
2016-12-23 05:18
#3
本帖最后由 isunny 于 2016-12-22 21:19 编辑
https://bbs.deepin.org/post/133298
终端右上角菜单中可以更换40种主题, 对于绝大多数挑剔党都是够用的。
如果需要自己配置, 可以直接打开 ~/ ...

可以升级一个 EOS0.4 loki 的终端配色吗  ???

不知道为什么 我在公司的电脑台式机里的终端的颜色。换那个都觉得不好看。。。可能是我的电脑显示器质量不好的缘故。。。但是在我的 X220 下EOS的配色  还是比较舒服的。。。。

我在公司电脑安装的是那个测试6代CPU的那个内部 ISO 使用wubi方式安装的。。。


Reply View the author
avatar
Feng Yu
deepin
2016-12-23 06:17
#4
https://bbs.deepin.org/post/133298
可以升级一个 EOS0.4 loki 的终端配色吗  ???

不知道为什么 我在公司的电脑台式机里的终端的颜色。换 ...

我最喜欢的配色主题是gnome terminal的tango主题配色
Reply View the author
avatar
isunny
deepin
2016-12-23 16:03
#5
https://bbs.deepin.org/post/133298
我最喜欢的配色主题是gnome terminal的tango主题配色

我也觉得gnome终端不错。。。
可是我 的觉得 我deepin终端颜色咋这么丑呢。。。。



在deepin下截了图,可惜chrome无法上传图片。。。   安装flash 太费劲 。。。什么时候上html5插件啊  ??


等一会我切回windows再上截图。。。
Reply View the author
avatar
wangyong
deepin
2016-12-24 02:45
#6
isunny 发表于 2016-12-22 21:18
可以升级一个 EOS0.4 loki 的终端配色吗  ???

不知道为什么 我在公司的电脑台式机里的终端的颜色。换 ...

你可以修改好配置文件后给我发一份,我给你加上去
Reply View the author
avatar
isunny
deepin
2016-12-24 06:36
#7
https://bbs.deepin.org/post/133298
你可以修改好配置文件后给我发一份,我给你加上去

我不知道那些有用。。。我贴出loki的bashrc  代码。。。如下。。

======================

  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  3. # for examples
  4. # We use preexec and precmd hook functions for Bash
  5. # If you have anything that's using the Debug Trap or PROMPT_COMMAND
  6. # change it to use preexec or precmd
  7. # See also https://github.com/rcaloras/bash-preexec

  8. # If not running interactively, don't do anything
  9. case $- in
  10.     *i*) ;;
  11.       *) return;;
  12. esac

  13. # don't put duplicate lines or lines starting with space in the history.
  14. # See bash(1) for more options
  15. HISTCONTROL=ignoreboth

  16. # append to the history file, don't overwrite it
  17. shopt -s histappend

  18. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  19. HISTSIZE=1000
  20. HISTFILESIZE=2000

  21. # check the window size after each command and, if necessary,
  22. # update the values of LINES and COLUMNS.
  23. shopt -s checkwinsize

  24. # If set, the pattern "**" used in a pathname expansion context will
  25. # match all files and zero or more directories and subdirectories.
  26. #shopt -s globstar

  27. # make less more friendly for non-text input files, see lesspipe(1)
  28. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

  29. # set variable identifying the chroot you work in (used in the prompt below)
  30. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  31.     debian_chroot=$(cat /etc/debian_chroot)
  32. fi

  33. # set a fancy prompt (non-color, unless we know we "want" color)
  34. case "$TERM" in
  35.     xterm-color|*-256color) color_prompt=yes;;
  36. esac

  37. # uncomment for a colored prompt, if the terminal has the capability; turned
  38. # off by default to not distract the user: the focus in a terminal window
  39. # should be on the output of commands, not on the prompt
  40. #force_color_prompt=yes

  41. if [ -n "$force_color_prompt" ]; then
  42.     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  43.         # We have color support; assume it's compliant with Ecma-48
  44.         # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  45.         # a case would tend to support setf rather than setaf.)
  46.         color_prompt=yes
  47.     else
  48.         color_prompt=
  49.     fi
  50. fi

  51. if [ "$color_prompt" = yes ]; then
  52.     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  53. else
  54.     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  55. fi
  56. unset color_prompt force_color_prompt

  57. # enable color support of ls and also add handy aliases
  58. if [ -x /usr/bin/dircolors ]; then
  59.     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  60.     alias ls='ls --color=auto'
  61.     #alias dir='dir --color=auto'
  62.     #alias vdir='vdir --color=auto'

  63.     alias grep='grep --color=auto'
  64.     alias fgrep='fgrep --color=auto'
  65.     alias egrep='egrep --color=auto'
  66. fi

  67. # colored GCC warnings and errors
  68. #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

  69. # some more ls aliases
  70. alias ll='ls -alF'
  71. alias la='ls -A'
  72. alias l='ls -CF'

  73. # Add an "alert" alias for long running commands.  Use like so:
  74. #   sleep 10; alert
  75. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

  76. # Alias definitions.
  77. # You may want to put all your additions into a separate file like
  78. # ~/.bash_aliases, instead of adding them here directly.
  79. # See /usr/share/doc/bash-doc/examples in the bash-doc package.

  80. if [ -f ~/.bash_aliases ]; then
  81.     . ~/.bash_aliases
  82. fi

  83. # enable programmable completion features (you don't need to enable
  84. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  85. # sources /etc/bash.bashrc).
  86. if ! shopt -oq posix; then
  87.   if [ -f /usr/share/bash-completion/bash_completion ]; then
  88.     . /usr/share/bash-completion/bash_completion
  89.   elif [ -f /etc/bash_completion ]; then
  90.     . /etc/bash_completion
  91.   fi
  92. fi

  93. # If this is an xterm set more declarative titles
  94. # "dir: last_cmd" and "actual_cmd" during execution
  95. # If you want to exclude a cmd from being printed see line 156
  96. case "$TERM" in
  97. xterm*|rxvt*)
  98.     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\$(print_title)\a\]$PS1"
  99.     __el_LAST_EXECUTED_COMMAND=""
  100.     print_title ()
  101.     {
  102.         __el_FIRSTPART=""
  103.         __el_SECONDPART=""
  104.         if [ "$PWD" == "$HOME" ]; then
  105.             __el_FIRSTPART=$(gettext --domain="pantheon-files" "Home")
  106.         else
  107.             if [ "$PWD" == "/" ]; then
  108.                 __el_FIRSTPART="/"
  109.             else
  110.                 __el_FIRSTPART="${PWD##*/}"
  111.             fi
  112.         fi
  113.         if [[ "$__el_LAST_EXECUTED_COMMAND" == "" ]]; then
  114.             echo "$__el_FIRSTPART"
  115.             return
  116.         fi
  117.         #trim the command to the first segment and strip sudo
  118.         if [[ "$__el_LAST_EXECUTED_COMMAND" == sudo* ]]; then
  119.             __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND:5}"
  120.             __el_SECONDPART="${__el_SECONDPART%% *}"
  121.         else
  122.             __el_SECONDPART="${__el_LAST_EXECUTED_COMMAND%% *}"
  123.         fi
  124.         printf "%s: %s" "$__el_FIRSTPART" "$__el_SECONDPART"
  125.     }
  126.     put_title()
  127.     {
  128.         __el_LAST_EXECUTED_COMMAND="${BASH_COMMAND}"
  129.         printf "\033]0;%s\007" "$1"
  130.     }
  131.    
  132.     # Show the currently running command in the terminal title:
  133.     # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
  134.     update_tab_command()
  135.     {
  136.         # catch blacklisted commands and nested escapes
  137.         case "$BASH_COMMAND" in
  138.             *\033]0*|update_*|echo*|printf*|clear*|cd*)
  139.             __el_LAST_EXECUTED_COMMAND=""
  140.                 ;;
  141.             *)
  142.             put_title "${BASH_COMMAND}"
  143.             ;;
  144.         esac
  145.     }
  146.     preexec_functions+=(update_tab_command)
  147.     ;;
  148. *)
  149.     ;;
  150. esac
Copy the Code



=======================
Reply View the author
avatar
isunny
deepin
2016-12-24 06:39
#8
本帖最后由 isunny 于 2016-12-23 22:42 编辑

再补一个 zshrc  不知道会不会不同。。。
Reply View the author