Skip to content

Instantly share code, notes, and snippets.

@x7hub
Created December 20, 2016 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x7hub/810909ac824111aed493a0af5e98841b to your computer and use it in GitHub Desktop.
Save x7hub/810909ac824111aed493a0af5e98841b to your computer and use it in GitHub Desktop.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA644fD3l3sttlfFYm3harvRBiZtO0GoSfcgQSCI8EdZ4EiJvRLP23XQI50sQNI0FEBdZZW5oXoEBiMXjxQ+0A/GyenjSKhbp2c7QDICN2WfJNlDB0scib6X8Dq/GaJUgE22J+wvBTKJrPctc8QCz2z3Ks0snik+UDDFYZ3eDa9Hq66QWn9p9RHtXNfQNqsHRswybSVMnf2mLa1fm7aKwJW5vf3xBTZenl/Tswzwy42/d7RnVPjUcw9gxMCTyP789u4lSJVA6gQawMKbt4A2YIoBQwBrsHbUF3LA6XKKjSCl6lBFjjbRJFV4mTt02w4EggIJia6EYVw83ql+b2ldKr commander@Commanders-MacBook-Pro.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyShsJmi/q4dcCfszibNbSVBQfAV0uKZsEs0F2cB53elNzUklcFlpf2S7yilI/MegcnwjqTdQL3B67b40twp1jyFFmZm5NiBCFBroo9OO7JM6k9Sj/gq0ovfmfOg5+5i5n1ztZ0lSO9+Qs8TGHK4iom9CI9AG6pB50GTrRJC8RfevygRpxfBqh5QXGYsFY0BObuCtIbxzUZC8tM9JsXWLsOFJohwzrQegOx5Ux1f1degMnI8dYTzS2moxUs5JJ9pRYBHFZJ7e9CdxAiU+jJawG0y1H2YO2MsMCZCzdPURhtRHzea9b78m7LzLchtGPuUBT4X288t7kv7hTONUZZ8TH zzz@sw-debian
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAsn7vgUYwbHY8Qofxfh3KMO8HtUIkSbYomhc+In1O2z2P6l/gt32W5YymLgXXchcJLJZ8/eTTY21kCWAKfJWGjEvljv3I+a45pdVsnpSQG8Fmr3TIlQYPIIcsGsGpFf3x+1audHFWgJeLYJp757AF0RUgvO/r1bzoTxrSuvZfiqivrK9tP94dCgwdipTAJHYdWOoPrnyyO+MF/ObU1Lt/7KUjNLAo5QJvNyPqMRWtG8fu41yFR7pXQxusuQArhaYC1SCQ39Ws+srmFttDRsVs0YnPCyk1PZZraTOR8boZZ4Uo+NSS0co8RUCzD/sCGpPq3QbHMdcoCRBPdMtZ8kV0If861W6LGKcJrFvPly6JF4tbXDns7mDt8p7b1c1soxucVQyep2LwqllZSNC4JYbGWdpJchN8hDnP0FYIwCC0j8NVsNqamrB8cYdwoXk7bv4gwR9Nlahm3/jk1mejIMf/uZsk9Wl6l/QTRHXQ5xFWNRsSm8FHfl5oHcf4lFa1baj7ggX5qwBLpN5eJgEPih8JebFgor6oDOe/+TrIR3BvJApZLjbTFfN0Kqz18mTTk1egfD1/CXIDEmie3Iht7DE+W7IwEno/aZ1NGXj6di7YVnlbjAmNLNEDsm2PUL9tDrOg0IbwHmFJSUzWqJTRAFZhJ0QspBhz+5zIlykaUxY+CZ0=
[user]
name = x7hub
email = x7.0@outlook.com
[core]
editor = vim
[push]
default = simple
[color]
ui = true
if [ $UID -eq 0 ]
then #root
PROMPT='%{$fg[yellow]%}%~%{$reset_color%}$(git_prompt_info)%{$fg[red]%} %# %{$reset_color%}'
PROMPT2=''
RPROMPT="%{$FG[237]%}%n@%m %l %T %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]("
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="$FG[214]*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
else #els
PROMPT='%{$FG[032]%}%~%{$reset_color%}$(git_prompt_info)%{$FG[105]%} %# %{$reset_color%}'
PROMPT2=''
RPROMPT="%{$FG[237]%}%n@%m %l %T %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[075]("
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="$FG[214]*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}"
fi
import os
import readline
import rlcompleter
import atexit
#tab completion
readline.parse_and_bind("tab: complete")
#history file
history_file = os.path.join(os.environ["HOME"],".pythonhistory")
try:
readline.read_history_file(history_file)
except IOError:
pass
atexit.register(readline.write_history_file,history_file)
del os,history_file,readline,rlcompleter
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2011 Apr 15
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" Don't use Ex mode, use Q for formatting
map Q gq
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" In many terminal emulators the mouse works just fine, thus enable it.
"if has('mouse')
" set mouse=a
"endif
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
"
" zzz
"
" encoding
set encoding=utf-8
set fileencodings=utf-8,gb2312
" indent
set autoindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
if has("autocmd")
autocmd FileType xml,html,c,m,cs,java,perl,shell,bash,cpp,python,vim,php,ruby,go set number
autocmd FileType c,cpp,python let Tlist_Auto_Open=1
autocmd FileType c,cpp setlocal cindent
autocmd FileType make setlocal noexpandtab
endif
" color
colorscheme desert
" colorscheme solarized
" colorscheme monokai
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/xg/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=65536
export SAVEHIST=$HISTSIZE
export PATH=$HOME/bin:$PATH
export GOPATH=$HOME/.go
export PYTHONSTARTUP=$HOME/.pythonstartup
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias ls="ls --color"
alias l="ls -al"
alias la="ls -a"
alias ll="ls -al"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment