配置自己的ubuntu

终端

zsh

安装zsh
apt install zsh

3 安装oh-my-zsh

bash -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
切换想要的主题

查看可以使用的主题

ls ~/.oh-my-zsh/themes

修改主题
编辑~/.zshrc文件

ZSH_THEME="candy" 

即可使用candy主题

修改candy为想要使用的主题即可

如果使用agnoster主题则需要安装powerline字体

apt-get install fonts-powerline
添加插件
zsh-autosuggestions

像fish一样的自动补全插件

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

之后在~/.zshrc中修改

plugins=(
  git zsh-autosuggestions
)
zsh-syntax-highlighting

命令正确则显示绿色,命令错误则显示红色,就像fish一样

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

之后在~/.zshrc中修改

plugins=(
  git zsh-syntax-highlighting
)
使用别名

遇到很长的命令怎么办?使用别名

alias ll='ls -l'

或者在~/.zshrc文件中添加

alias ll='ls -l'

fish

想一键安装成功?想一步到位?

安装
apt-add-repository ppa:fish-shell/release-2
apt-get update
apt-get install fish
更换主题

虽然有了补全功能,但是想更换一个好看的主题?

使用oh-my-fish

安装,在fish中输入

curl -L https://get.oh-my.fish | fish

更换新主题,比如agnoster

omf theme agnoster

搜索插件

omf search <name>

安装插件

omf install <name>
别名

fish的别名和其他的都一样

alias ll='ls -l'

terminator

是否想将自己的终端变得炫酷一点?是否想提高自己的效率?

那就把自己的终端一分为二吧

安装
apt-get install terminator
常用快捷键
ctrl+shift+e 水平分割
ctrl+shift+o 垂直分割
ctrl+shift+w 关闭当前终端
alt+方向键 切换终端
修改属性

有时候会觉得最上面的那个红色的标题有点丑,可以在设置中将其关闭

vim ~/.config/terminator/config

在[profiles]中添加

show_titlebar = False

IDE

想高效的使用ubuntu,一个好的IDE是必不可少的

jetbrains系列

安装

在官网上下载toolbox,选择版本安装即可

获取注册码

http://idea.lanyus.com/

激活时选择active code,粘贴即可激活

sublime

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

apt-get install apt-transport-https

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

apt-get update

apt-get install sublime-text

参考链接

https://segmentfault.com/a/1190000013612471

https://github.com/powerline/fonts

https://blog.csdn.net/ipatient/article/details/51547658

https://linux.cn/article-9515-1.html

转载于:https://www.cnblogs.com/hf99/p/10165246.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值