Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Bash environment is automatically install and initialize oh-my-zsh & autojump zsh     - MySQL monitoring tools -orzdba (Database)

- To compile install and test Swift under Linux (Linux)

- How wifi-linux AP signal strength detection (Linux)

- iOS constants, variables, properties and characteristics (Programming)

- Linux system commands to view hardware information (Linux)

- 6 common PHP security attacks (Linux)

- SA weak password security system of the security risks posed (Linux)

- Deploy the project to the server from GitHub (Server)

- Command filter MySQL slow query log (Database)

- Oracle Automatic Diagnostic Repository (Automatic Diagnostic Repository, ADR) (Database)

- MySQL 5.6 master-slave replication configuration (Database)

- HDFS Hadoop Distributed File System Works (Server)

- SSH automatic disconnection problem solving (Linux)

- Using open source software to build XWiki Wiki system installed within the company (Linux)

- Quagga use authentication on strengthening BGP session security (Linux)

- Ubuntu program using the Sound Recorder (Linux)

- How to use Xmanager Remote Desktop and VNC Log (Linux)

- Valgrind * not * leak check tool (Linux)

- Prevent security threats caused Rootkit (Linux)

- MySQL to manage multiple instances of method (Database)

 
         
  Bash environment is automatically install and initialize oh-my-zsh & autojump zsh
     
  Add Date : 2018-11-21      
         
         
         
  Linux and Mac system default shell is bash, but the real power should belong to zsh shell, and completely control the bash, is the shell of the ultimate killer, there are many features not bash, but zsh initial configuration is too complicated, popular rate has been low, until a man named Robby Russell guy on github developed oh-my-zsh project, so that we use zsh convenience is greatly improved.

Since the company's computer is windows, toss under cygwin, and installed zsh, so start with a lot of convenience to maintain, and I put autojump projects are integrated together, and finally wrote a script automatic installation, you can automatically from the current bash installation environment Oh-my-zsh, autojump and initialize zsh. Currently only supports Ubuntu, CentOS, Debian.

I gather that this zsh profile online support plugin (git autojump history history-substring-search systemadmin systemd), a detailed program to see the plugin source code ~ .oh-my-zsh / plugins /.

See autojump autojump use of official documents. https://github.com/wting/autojump
history-substring-search Search history bright very strong, strong enough to make you suddenly tongue.
systemadmin SA integrates many commonly used commands.
systemd for centos7 after systemctl streamlining of intelligence.

#! / Bin / bash
#Author: Shanker
#set -x
#set -u
clearhacker
  
echo ""
echo "################################################ ############# "
echo "# Automatically to Install oh-my-zsh and initialize it #"
echo "# Intro: https://github.com/sangrealest/shanker #"
echo "# Author: Shanker #"
echo "################################################ ############# "
echo ""
#if [ `id -u` -ne 0]
#then
# Echo "Need root to run is, try with sudo"
# Exit 1
#fi
function checkOs () {
    if [-f / etc / RedHat-release]
    then
        OS = "CentOS"
    elif [-z! "` cat / etc / issue | grep -i bian` "]
    then
        OS = "Debian"
    elif [-z! "` cat / etc / issue | grep -i ubuntu` "]
    then
        OS = "Ubuntu"
    else
        echo "Not supported OS"
        exit 1
    fi
}
function installSoftware () {
if [ "$ OS" == 'CentOS']
then
    sudo yum -y install zsh git
else
    sudo apt-get -y install zsh git
fi
zshPath = "` which zsh` "
}
function downloadFile () {
    cd ~
    git clone https://github.com/robbyrussell/oh-my-zsh.git ~ / .oh-my-zsh
    git clone https://github.com/joelthelion/autojump.git
    git clone https://github.com/sangrealest/initzsh
}
function installAutojump () {
    cd ~ / autojump
    ./install.py
cat >> ~ / .zshrc << EOF
[[-s ~ / .autojump / Etc / profile.d / autojump.sh]] && source ~ / .autojump / etc / profile.d / autojump.sh
autoload -U compinit && compinit -u
EOF
}
function configZsh () {
    if [-f ".zsh_history"]
    then
        mv .zsh_history {., backup}
    fi
    sudo chsh -s "$ zshPath"
    cp ~ / initzsh / zshrc ~ / .zshrc
}
function main () {
checkOs
installSoftware
downloadFile
configZsh
installAutojump
}
main

If cygwin use zsh, you only need to add a line inside the .bashrc / bin / zsh can.
     
         
         
         
  More:      
 
- Use Markdown editor for document work under Linux (Linux)
- Linux (CentOS) SSH login without password authentication (Linux)
- Iptables on the request URL for IP access control (Linux)
- CentOS 6.5 three ways to configure the IP address (Linux)
- Linux system performance and usage activity monitoring tools -Sysstat (Linux)
- High-performance JavaScript loaded and executed (Programming)
- Expand an existing RAID arrays and remove the failed disk in a RAID (Linux)
- Lambda expressions of evolution (Programming)
- Python implementation Bursa transition model (Programming)
- SecureCRT 7.0 Log Ubuntu 12.04 server via SSH service under Vmware (Server)
- Row-level security and application-level solutions for the new features of PostgreSQL9.5 (Database)
- MySQL Tutorial: Some optimized for I / O memory areas (Database)
- Linux kernel source code analysis (Linux)
- Keepalived + Nginx Installation and Configuration (Server)
- C ++ 11 smart pointers (Programming)
- Python control multi-process and multi-threaded concurrency (Programming)
- How to restart after a crash Cinnamon (Linux)
- Linux Creating a new user error Creating mailbox file: File exists (Linux)
- Linux common network tools: Scan routing of mtr (Linux)
- Database start listening TNS-12537, TNS-12560 error (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.