记录一下自己这几天折腾的Linux配置

Info

OS: Manjaro 18.0 Illyria

Kernel: x86_64 Linux 4.19.1-1-MANJARO

Shell: zsh 5.6.2

DE: GNOME

WM: GNOME Shell

WM Theme: OSX-Arc-Plus

GTK Theme: OSX-Arc-Plus [GTK2/3]

Icon Theme: la-capitaine-icon-theme

Font: Droid Sans Fallback 11

Packages

awesome-terminal-fonts

fcitx-sogoupinyin

fcitx-configtool

gnome-boxes

octave

goldendict

shadowsocks-qt5

vim

zeal

typora

sublime-text-3

google-chrome

nutstore

VMware-Workstation-MacOS (systemctl start vmware-networks.service)

persepolis download manager

oh my zsh

Plugins

zsh-syntax-highlighting

zsh-autosuggestions

Theme

zsh-theme-powerlevel9k

.zshrc

export DEFAULT_USER="frostmiku"
export TERM="xterm-256color"
export ZSH=/home/frostmiku/.oh-my-zsh

ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE="awesome-fontconfig"


POWERLEVEL9K_FOLDER_ICON=""
POWERLEVEL9K_HOME_SUB_ICON=" "
POWERLEVEL9K_DIR_PATH_SEPARATOR="  "

POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0

POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER=true

POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND='black'
POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND='178'
POWERLEVEL9K_NVM_BACKGROUND="238"
POWERLEVEL9K_NVM_FOREGROUND="green"
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND="blue"
POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_FOREGROUND="015"

POWERLEVEL9K_TIME_BACKGROUND='255'
#POWERLEVEL9K_COMMAND_TIME_FOREGROUND='gray'
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND='245'
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND='black'

POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir dir_writable vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs command_execution_time time)
POWERLEVEL9K_SHOW_CHANGESET=true

HYPHEN_INSENSITIVE="true"
COMPLETION_WAITING_DOTS="true"
# /!\ do not use with zsh-autosuggestions

plugins=(k tig gitfast colored-man colorize command-not-found cp dirhistory autojump sudo zsh-syntax-highlighting)
# /!\ zsh-syntax-highlighting and then zsh-autosuggestions must be at the end

source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZSH/oh-my-zsh.sh

ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_STYLES[cursor]='bold'

ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[function]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[command]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=green,bold'
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green,bold'


rule () {
    print -Pn '%F{blue}'
    local columns=$(tput cols)
    for ((i=1; i<=columns; i++)); do
       printf "\u2588"
    done
    print -P '%f'
}

function _my_clear() {
    echo
    rule
    zle clear-screen
}
zle -N _my_clear
bindkey '^l' _my_clear


# Ctrl-O opens zsh at the current location, and on exit, cd into ranger's last location.
ranger-cd() {
    tempfile=$(mktemp)
    ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY
    test -f "$tempfile" &&
    if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
    cd -- "$(cat "$tempfile")"
    fi
    rm -f -- "$tempfile"
    # hacky way of transferring over previous command and updating the screen
    VISUAL=true zle edit-command-line
}
zle -N ranger-cd
bindkey '^o' ranger-cd

alias fq="proxychains4"
alias zhuangb="screenfetch|lolcat"
alias py="python"
Tags:Linux
上一篇
下一篇

添加新评论

已有 2 条评论

 冯小贤 3 个月前 • |

真的像mac

 FrostMiKu 3 个月前 • |
@冯小贤

记录的原因就是因为我去搞 Hackintosh(黑苹果)了,然而Blog炸的这几天我又刷回Windows了(真香