当前位置: 首页 > news >正文

汉阴做网站wordpress回复

汉阴做网站,wordpress回复,云主机搭建多个网站,海外酒店 网站建设切换shell 在Linux中默认使用/bin/bash,在用户创建时,会自动给用户创建用户默认的shell。默认的shell就是/bin/bash。要修改shell将其设置为/bin/ksh,有两种方法方法 # 方法一: chsh -s /bin/ksh chsh -s /bin/zsh # 方法二: usermod -s /b…

切换shell

在Linux中默认使用/bin/bash,在用户创建时,会自动给用户创建用户默认的shell。
默认的shell就是/bin/bash。要修改shell将其设置为/bin/ksh,有两种方法方法

# 方法一: chsh -s /bin/ksh
chsh -s /bin/zsh # 方法二: usermod -s /bin/ksh rootusermod -s /bin/zsh root# 查看当前使用的shell
echo $SHELL# 查看所有可用的shell
cat /etc/shells

安装zsh

yum install zsh

安装 Oh My Zsh

  1. 下载安装脚本 https://github.com/ohmyzsh/ohmyzsh/blob/master/tools/install.sh
  2. 如果开发机没有外网权限,则修改 install.sh 中 REMOTE=KaTeX parse error: Expected '}', got 'EOF' at end of input: ….baidu-int.com/{REPO}.git} 为我厂的 github mirror
  3. 一键安装
sh install.sh --skip-chsh

安装 powerlevel10k

powerlevel10k 是一款非常优秀的 zsh 主题,可直接克隆仓库:

git clone --depth=1 https://github.baidu-int.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k

在 ~/.zshrc 中修改主题 ZSH_THEME=“powerlevel10k/powerlevel10k” 后,可通过 p10k configure 命令采用问答快速定制化自己的配置,配置完成后还可以在 ~/.p10k.zsh 中自己设置,包括左右栏显示的信息等。
如果配置完成后显示有乱码或者符号显示不完全,是因为没有设置对应的字体,在 nerd-fonts 下载 Hack Nerd Font 或 Meslo Nerd Font 字体并在 iTerm2 正确设置后即可正常显示。

常用插件

Oh My Zsh 提供了非常丰富的插件,可根据自己的喜好来安装(但也不宜过多),常用的插件有 git, z, zsh-syntax-highlighting, zsh-autosuggestions
需要在 ~/.zshrc 中修改 plugins 为 plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)

VSCode 终端字体修改

在 settings 中搜索 terminal font,修改为之前设置的 iTerm2 相同的字体即可。

效果图

image.png

tmux 配置

安装及配置

使用 jumbo 安装 tmux 新版:

jumbo install tmux2

使用以下配置覆盖 ~/.tmux.conf:
.tmux.conf

# ------ general ------------------------------------
set -g prefix C-s
unbind C-b
bind C-s send-prefixset -g escape-time 0
set -g base-index 1
set -g renumber-windows on
set -g mouse on
set -wg pane-base-index 1# rename-window
set -wg allow-rename off
set -wg automatic-rename offset -wg mode-keys vi# last-window
bind a last# retain current path
bind c new-window -c "#{pane_current_path}"
bind _ split-window -h -c "#{pane_current_path}"
bind - split-window -c "#{pane_current_path}"# restart and edit
bind r source ~/.tmux.conf\; display "tmux config sourced"
bind e neww -n tmux-config "\${EDITOR:-vim} ~/.tmux.conf"# ------ move around --------------------------------
bind -r h select-pane -L
bind l select-pane -R        # remove repeat, because of ls
bind -r j select-pane -D
bind -r k select-pane -U# ------ status theme -------------------------------
set -g message-style "bg=#00346e, fg=#ffffd7"        # tomorrow night blue, base3set -g status-style "bg=#00346e, fg=#ffffd7"   # tomorrow night blue, base3
set -g status-left "#[bg=#0087ff] ❐ #S "       # blue
set -g status-left-length 400
set -g status-right "#{?client_prefix, ⌨ , } #[bg=#0087ff] #(whoami)@#h #[bg=red] %Y-%m-%d %H:%M "
set -g status-right-length 600set -g set-clipboard on
set -g history-limit 10000set -wg window-status-format " #I #W "
set -wg window-status-current-format " #I #W "
set -wg window-status-separator ""
set -wg window-status-current-style "bg=red" # red
set -wg window-status-last-style "fg=red"set -wg pane-active-border-style "fg=blue"
set -wg pane-border-style "fg=#585858"       # base01set -g default-terminal "screen-256color"# ------- copy to clipboard ------------------------
# bind -t vi-copy y copy-pipe 'xclip -selection clipboard > /dev/null'
# bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"

将快捷键更新为 C-s,设置鼠标开启,配置我厂的蓝红配色等。

vim 配置

安装插件

安装 vim-plug 管理插件:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

使用如下代码覆盖 ~/.vimrc 来安装 vim-airline,vim-airline-themes,vim-one,nerdtree 插件(使用 :PlugInstall 来安装)以及一些简单的 vim 配置
.vimrc

call plug#begin('~/.vim/plugged')Plug 'https://github.baidu-int.com/vim-airline/vim-airline'
Plug 'https://github.baidu-int.com/vim-airline/vim-airline-themes'
Plug 'https://github.baidu-int.com/preservim/nerdtree'call plug#end()set number
set cursorline
set cursorcolumn
set noshowmode" airline
let g:airline_theme='dracula'
let g:one_allow_italics=1
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#left_sep=' '
let g:airline#extensions#tabline#left_alt_sep='|'
let g:airline#extensions#tabline#buffer_nr_show=1" NERDTree
map <C-n> :NERDTreeToggle<CR>
http://www.yayakq.cn/news/629418/

相关文章:

  • python微信网站开发做趣味图形的网站
  • 网站服务器建设的三种方法是什么免费创一个网站
  • 网站建设公司行业腾讯云域名续费价格
  • 做网站时给图片添加链接如何删除在凡科上做的网站
  • 整站优化该怎么做贵阳网站开发培训学费
  • 做品牌推广用什么网站百度广告联盟看广告赚钱
  • 网站建设规划方案论文wordpress调用服务器
  • 佛山附近做网站的公司泰安高端网站设计建设
  • 网站推广设计做哪些做公司展示网站
  • 讯美深圳网站建设池州做网站
  • 自己做同城购物网站wordpress无法访问站点
  • 外贸网站 免费模板 使用 zencart文化集团网站模板
  • 有没有做旅游攻略的网站软件网站开发平台
  • 本地wordpress 外网访问不了建站优化易下拉系统
  • 中小学门户网站建设广州网站建设与实验
  • 深圳比较好的设计网站公司学校网站建设制度
  • 佳木斯做网站的公司网站建设后的团队总结
  • 成品网站w灬源码1688网页版绿色模板网站
  • wordpress不会发送电子邮件北京公交yy优化
  • 石家庄网站建立wordpress wp_handle_upload
  • 易企网站建设网站建设制作软件
  • seo更新网站内容的注意事项上海公司注册流程及需要的材料
  • 南沙电子商务网站建设三明市住房和城乡建设局网站
  • 手游门户网站模块视频拍摄器材
  • 上海做高端网站制前端做网站的兼职
  • 中建南方建设集团官方网站线上推广app
  • 公司建立自己的网站有什么好处上高县建设局网站
  • 做网站优化竞价区别成都到深圳物流公司
  • 互联网公司起名seo策略有哪些
  • 全国房地产网站购物网站源码下载