- OS: macOS Sierra, Ubuntu18.04LTS Desktop
- Python: 3.6.4(macOS 公式インストーラ), 3.6.6(Ubuntuデフォルト)
- Vim: macvim-kaoirya,
apt install vim-gnome
して入ったもの - 仮想環境: あるなし関係なくモジュールの補完がうまくいかないものがある
- なし→Python3.6が動く
- venv
- pipenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@ubuntu-bionic:~$ sudo apt install python3-dev | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following additional packages will be installed: | |
dh-python libexpat1-dev libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal | |
libpython3.6-stdlib python3 python3-minimal python3-venv python3.6 python3.6-dev python3.6-minimal python3.6-venv | |
Suggested packages: | |
python3-doc python3-tk python3.6-doc binfmt-support | |
The following NEW packages will be installed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipython==6.5.0 | |
ipython-genutils==0.2.0 | |
ipywidgets==7.4.2 | |
jedi==0.13.0 | |
Jinja2==2.10 | |
jsonschema==2.6.0 | |
jupyter==1.0.0 | |
jupyter-client==5.2.3 | |
jupyter-console==5.2.0 | |
jupyter-core==4.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:plug_dir = '~/.cache/plugged' | |
call plug#begin(s:plug_dir) " {{{ | |
Plug 'prabirshrestha/async.vim' | |
Plug 'prabirshrestha/vim-lsp' | |
call plug#end() " }}} | |
" --- vim-lsp --- {{{ | |
if executable('pyls') | |
" pip install python-language-server | |
autocmd User lsp_setup call lsp#register_server({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tox completion -*- shell-script -*- | |
_tox() | |
{ | |
local cur prev words cword split | |
_init_completion -s || return | |
case $prev in | |
-h|--help|--version|-n|--num|-i|--index-url|--hashseed|--force-dep) | |
return |
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [-1, 3, -5, 7, -9]
>>> filter(lambda x: abs(x) > 5, a)
[7, -9]
>>>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash history | |
export HISTSIZE=10000 | |
export HISTCONTROL=ignoreboth # ignorespace+ignoredups = ignoreboth | |
export HISTIGNORE="ls:fg*:history*" | |
# peco | |
function peco-repo() { | |
local selected_file=$(ghq list --full-path | peco --query "$LBUFFER") | |
if [ -n "$selected_file" ]; then | |
if [ -t 1 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kashewnuts@kashew-mbp:~$ | |
python | |
python python2.6-config python3-config python3.5m-config pythonw | |
python-config python2.7 python3.5 python3.6 pythonw2 | |
python2 python2.7-config python3.5-32 python3.6-config pythonw2.6 | |
python2-config python3 python3.5-config python3.6m pythonw2.7 | |
python2.6 python3-32 python3.5m python3.6m-config | |
kashewnuts@kashew-mbp:~$ | |
python -V | |
Python 2.7.10 |