zoukankan      html  css  js  c++  java
  • 树莓派进阶之路 (005)

    zsh.sh

     1 #!/bin/bash
     2 
     3 cd 
     4 #安装zsh
     5 sudo apt-get install zsh
     6 #查看zsh
     7 cat /etc/shells
     8 #更改zsh
     9  chsh -s /bin/zsh
    10 #自动安装:
    11 wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
    12 #下载
    13 git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
    14 cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
    15 #设置
    16 cd pi/pi_sh/
    17 cat zsh.txt >> ~/.zshrc
    18 
    19 #安装插件
    20 git clone git://github.com/joelthelion/autojump.git
    21 cd autojump
    22 sudo ./install.py

    zsh.txt

     1 alias cls='clear'
     2 alias ll='ls -l'
     3 alias la='ls -a'
     4 alias vi='vim'
     5 alias javac="javac -J-Dfile.encoding=utf8"
     6 alias grep="grep --color=auto"
     7 alias -s html=mate   # 在命令行直接输入后缀为 html 的文件名,会在 TextMate 中打开
     8 alias -s rb=mate     # 在命令行直接输入 ruby 文件,会在 TextMate 中打开
     9 alias -s py=vi       # 在命令行直接输入 python 文件,会用 vim 中打开,以下类似
    10 alias -s js=vi
    11 alias -s c=vi
    12 alias -s java=vi
    13 alias -s txt=vi
    14 alias -s gz='tar -xzvf'
    15 alias -s tgz='tar -xzvf'
    16 alias -s zip='unzip'
    17 alias -s bz2='tar -xjvf

    使用脚本时需要在家目录中添加 zsh.txt 文件。

  • 相关阅读:
    bzoj 1017 魔兽地图DotR
    poj 1322 chocolate
    bzoj 1045 糖果传递
    poj 3067 japan
    timus 1109 Conference(二分图匹配)
    URAL 1205 By the Underground or by Foot?(SPFA)
    URAL 1242 Werewolf(DFS)
    timus 1033 Labyrinth(BFS)
    URAL 1208 Legendary Teams Contest(DFS)
    URAL 1930 Ivan's Car(BFS)
  • 原文地址:https://www.cnblogs.com/jikexianfeng/p/5859496.html
Copyright © 2011-2022 走看看