zsh & oh-my-zsh

配置oh-my-zsh之前要先安装Git

sudo apt-get install zsh
sudo apt-get install git
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

之前记得切换shell使用 chsh 命令。但是最近版本的ubuntu总是需要输入一个密码,然后出一个错误,没有查出如何解决这个问题

chsh: PAM: Authentication failure

所以,这里使用了一种比较暴力的解决办法,直接修改用户的配置。

sudo vim /etc/passwd/

找到自己的用户名,把shell对应的一列该成自己需要的shell。

查看机器上shell路径的办法:

cat /etc/shells

Vim

vundle

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Config:


"显示行号
set number "制表符为4
set tabstop=4 "软制表符为4
set softtabstop=4 "缩进空格数为4
set shiftwidth=4 " 设置自动缩进,即每一行与上一行的缩进相等
"set autoindent set expandtab
%ret! 4 "设置C/C++语言的自动缩进
set cindent """""""""""""""""""""""""""""""""""
" Tag list ctags
""""""""""""""""""""""""""""""""""
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+ias --extra=+q .<CR> nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Show_One_File = 1
let Tlist_exit_onlyWindow = 1
let Tlist_Use_Right_Window = 1
""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""
" NERDTree
"""""""""""""""""""""""""""""""""""
nnoremap <silent> <F7> :NERDTreeToggle<CR>
""""""""""""""""""""""""""""""""""" filetype on
filetype plugin on
filetype indent on
syntax on "git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" vundle {
set rtp+=~/.vim/bundle/vundle/
" 如果在windows下使用的话,设置为
" set rtp+=$HOME/.vim/bundle/vundle/
call vundle#rc()
" }
"
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle' " My Bundles here:
"
" original repos on github
" github上的用户写的插件,使用这种用户名+repo名称的方式
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
" vim-scripts repos " vimscripts的repo使用下面的格式,直接是插件名称
Bundle 'taglist.vim'
Bundle 'c.vim'
Plugin 'scrooloose/nerdTree' " non github reposo
" 非github的插件,可以直接使用其git地址
" Bundle 'git://git.wincent.com/command-t.git'
" ... "
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
" vundle主要就是上面这个四个命令,例如BundleInstall是全部重新安装,BundleInstall!则是更新
" 一般安装插件的流程为,先BundleSearch一个插件,然后在列表中选中,按i安装
" 安装完之后,在vimrc中,添加Bundle 'XXX',使得bundle能够加载,这个插件,同时如果
" 需要配置这个插件,也是在vimrc中设置即可
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..

Shadowsocks

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

SwitchOmega

下载地址

adb 32位环境

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1

python

sudo apt-get install python
sudo apt-get install python-pip
sudo apt-get install python-virtualenv
sudo apt-get install virtualenvwrapper

修改pip源(修改到豆瓣):

执行:

cat > ~/.pip/pip.conf

输入:

[global]
trusted-host = pypi.douban.com
index-url = http://pypi.douban.com/simple

Ctrl + D

sdkman

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

groovy

sdk install groovy # 依赖sdkman

gradle

sdk install gradle # 依赖sdkman

Android源码

从这里下载可以使用迅雷,绕开repo更新。速度给力,10M左右。下载地址

截屏工具

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update
sudo apt-get install shutter

python 国内镜像设置

创建文件 ~/.pip/pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn

最新文章

  1. SAE学习-使用SAE的Storage服务存储图片
  2. 移动端webUI框架(HTML5手机框架)
  3. Cordova webapp实战开发:(3)后面可能会学到的东西
  4. call_user_func函数
  5. 调用CXF工具 生成 WSDL【转】
  6. js操作table倒叙显示序号的问题
  7. JSBinding + SharpKit / 原理篇:内存管理与垃圾回收
  8. Looksery Cup 2015 H. Degenerate Matrix 数学
  9. 使用GPS经纬度定位附近地点(某一点范围内查询)
  10. Vedis - An Embeddable Datastore Engine
  11. iOS 7 新特性
  12. c语言对齐问题
  13. 观光公交noip&lt;贪心&gt;
  14. bind9的一些配置
  15. Bootstrap+Vue.js 练习入门一
  16. PHP不使用任何内置函数实现字符串翻转
  17. [Err] ORA-00923: FROM keyword not found where expected 与rownum
  18. 1.7Oob封装 继承 访问修饰符 静态和构造方法的执行顺序
  19. node离线版安装
  20. Springboot学习笔记(三)-常用注入组件方式

热门文章

  1. openstack-ocata-网络服务5
  2. ui设计未来前景怎么样?ui设计这个行业怎么样?
  3. python 常见错误和异常 函数 正则表达式及多线程编程
  4. SQL注入攻击三部曲之高级篇
  5. TI AM335X处理器介绍
  6. JavaScript利用append添加元素报错
  7. Error:dijit.tree.TreeStoreModel:root query returned 0 items
  8. linux 安装沙盒virtualenv 、virtualenvwrapper
  9. AI CV 会议2018
  10. Spring Boot 文件上传原理