powerline fonts
1 2 3 4 git clone https://github.com/powerline/fonts.git --depth=1 && mkdir -p ~/.local/share/fonts/ && cp -f fonts/DejaVuSansMono/*.ttf ~/.local/share/fonts/ && fc-cache -vf ~/.local/share/fonts/
1 2 3 4 5 6 wget -c https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf && \ wget -c https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf && \ mkdir -p ~/.local/share/fonts/ ~/.config/fontconfig/conf.d/ && \ mv PowerlineSymbols.otf ~/.local/share/fonts/ && \ fc-cache -vf ~/.local/share/fonts/ && \ mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
bash 1 wget https://github.com/aeiouaoeiuv/ubuntu_home_dir/raw/master/.ls_colors -O $HOME/.ls_colors
vi ~/.bashrc
as bashrc copy Git-Bash: /mingw64/share/git/completion/git-completion.bash
to $HOME/.git-completion.bash
copy Git-Bash: /mingw64/share/git/completion/git-prompt.sh
to $HOME/.git-prompt.sh
zsh copy /mingw64/share/git/completion/git-completion.zsh
(Git-Bash) to $HOME/.git-completion.zsh
1 2 3 4 5 6 7 sudo apt -y install zsh && sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search && git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && wget -c https://raw.githubusercontent.com/aeiouaoeiuv/ubuntu_home_dir/master/.zshrc -O $HOME/.zshrc && wget -c https://raw.githubusercontent.com/aeiouaoeiuv/ubuntu_home_dir/master/.oh-my-zsh/themes/agnoster_random.zsh-theme -O $HOME/.oh-my-zsh/themes/agnoster_random.zsh-theme
oh-my-zsh github.com/ohmyzsh/ohmyzsh#via-curl
zsh-history-substring-search github.com/zsh-users/zsh-history-substring-search#install
zsh-autosuggestions github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh
zsh_syntax_highlighting github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#oh-my-zsh
vim first, install vundle
1 wget https://github.com/aeiouaoeiuv/ubuntu_home_dir/raw/master/.vimrc -O $HOME/.vimrc
git 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 git config --global core.autocrlf false git config --global core.safecrlf true git config --global core.quotepath false git config --global core.filemode false git config --global core.editor /usr/bin/vim git config --global alias.st status git config --global alias.co checkout git config --global alias.lg "log --all --graph --pretty=format:\"%C(154)%h %C(31)%ai %C(6)%an%Creset%C(auto)%d%Creset%n%w(0,4,4)%B\"" git config --global log.date iso git config --global diff.tool vimdiff git config --global difftool.prompt true # Optional git config --local user.signingkey 8024A73585F84542B91866EEF4F6D30C9442A4F3 git config --local commit.gpgsign true
/etc/issue /etc/issue 1 2 eth0: \4{eth0} eth1: \4{eth1}
For those unsupported \4{eth0}
(execute man agetty
and look at ISSUE ESCAPES
section to figure out), use the script as below:
/etc/rc.local 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # print IPv4 before the login prompt all_lines="\E[38;5;11;1m" # initialize replace_flag=false ifs=$(ip -o link show | awk -F': ' '{print $2}' | grep -v 'lo') for v in ${ifs}; do line="${v}: $(ip address show ${v} 2>/dev/null | awk '/inet / {print $2}' | cut -d/ -f1)" all_lines="${all_lines}\n${line}" if ! grep -qx "${line}" /etc/issue 2>/dev/null; then replace_flag=true fi done all_lines="${all_lines}\n\E[0m" if ${replace_flag}; then echo -e $all_lines > /etc/issue fi
askubuntu askubuntu.com/questions/217358/how-can-i-display-eth0s-ip-address-at-the-login-screen-on-precise-server
XShell Color Scheme download Ubuntu.xcs , and import to XShell.
MobaXterm download MobaXterm.ini to Documents/MobaXterm
git-bash 1 2 3 git clone https://github.com/powerline/fonts.git && curl -L https://raw.githubusercontent.com/aeiouaoeiuv/recipes/master/git-bash/git-prompt.sh -o ~/.config/git/git-prompt.sh && curl -L https://raw.githubusercontent.com/aeiouaoeiuv/recipes/master/putty/minttyrc -o ~/.minttyrc
install fonts/DejaVuSansMono/*.ttf
tmux XShell
X11 forwarding: X DISPLAY(D): localhost:0.0
install VcXsrv
: before using X11 forwarding, launch xlaunch.exe
first. Linux install xclip
.
1 wget https://github.com/aeiouaoeiuv/ubuntu_home_dir/raw/master/.tmux.conf -O $HOME/.tmux.conf
For CentOS 7
: vi ~/.bashrc
1 2 3 #if [ -f /etc/bashrc ]; then # . /etc/bashrc #fi
tig Install tig
with wide char as this
1 wget https://raw.githubusercontent.com/aeiouaoeiuv/recipes/master/tig/tigrc -O $HOME/.tigrc