- Packge Install
- http://ftp.jaist.ac.jp
- wget, vim, vim-common, libiconv, libiconv2
- Options -> Text -> 12pt
- Options -> Looks -> Cursor -> Block
- Options -> Terminal -> Bell -> no beep
- cd
| Gem::Specification.new do |spec| | |
| spec.add_dependency "pry" | |
| spec.add_dependency "pry-doc" | |
| spec.add_dependency "solargraph" | |
| end |
| # cask "vagrant" | |
| # cask "virtualbox" | |
| brew "curl" | |
| brew "emacs" | |
| brew "exiftool" | |
| brew "ffmpeg" | |
| brew "git" | |
| brew "glib" | |
| brew "go" | |
| brew "iproute2mac" |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/bionic64" | |
| config.vm.network "private_network", ip: "192.168.100.10" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = 4096 | |
| vb.cpus = 2 | |
| end | |
| end |
| filetype plugin indent on | |
| syntax on | |
| set term=builtin_ansi | |
| set backspace=indent,eol,start | |
| augroup vimrcEx | |
| au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") | | |
| \ exe "normal g`\"" | endif | |
| augroup END |
| # 各種エイリアス | |
| alias ls="ls -G" | |
| alias history="history -E 1" | |
| alias bundleinit="bundle init --gemspec=~/.gemspec_template" | |
| alias gits="git status" | |
| alias gcm="git checkout master && git pull origin master" | |
| # 履歴サイズ | |
| export HISTSIZE=100000 |
| require 'irb/completion' | |
| IRB.conf[:SAVE_HISTORY] = 10000 | |
| IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history" | |
| IRB.conf[:PROMPT][:DEFAULT] = { | |
| :PROMPT_I=>"%N(%m):%03n:%i> ", | |
| :PROMPT_N=>"%N(%m):%03n:%i> ", | |
| :PROMPT_S=>"%N(%m):%03n:%i%l ", | |
| :PROMPT_C=>"%N(%m):%03n:%i* ", |
| # Change prefix | |
| unbind-key C-b | |
| set-option -g prefix C-t | |
| bind-key C-t send-prefix | |
| # Set Keybind | |
| ## Resize pane | |
| bind -r C-h resize-pane -L 5 | |
| bind -r C-l resize-pane -R 5 | |
| bind -r C-j resize-pane -D 5 |
| (require 'url) | |
| (defun send-http-request (url) | |
| "Send a simple http request and open a result within an other buffer.." | |
| (let | |
| ( | |
| (url-request-method "GET") | |
| (url-request-extra-headers '(("Content-Type" . "application/x-www-form-urlencoded")))) | |
| (url-retrieve url 'switch-to-buffer-for-responce))) |