• 配置自己的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

  • 相关阅读:
    socket错误码获取
    代码整洁之道读书笔记函数
    算法学习之堆排序
    包含与继承区别
    提高 LayerBacked Memory Use
    RenderBuffer
    算法学习之快速排序
    NSTimer
    DNS and BIND ... (转载) zhumao
    Samba学习笔记(转载) zhumao
  • 原文地址:https://www.cnblogs.com/hf99/p/10165246.html
Copyright © 2020-2023  润新知