Tmux / Vim

Tmux

Upgrade 1.8 to 2.0 (Ubuntu 14.04)

sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=2.0-1~ppa1~t

now if you do tmux -V it should show tmux 2.0 which is a good version for tmux plugins

*Optional
sudo apt-cache show tmux
sudo apt-get install tmux
tmux -V

Setting


tmux source-file ~/.tmux.conf #적용하기

Ruby on Rails

# rbenv 설치하기 
git clone https://github.com/rbenv/rbenv.git ~/.rbenv 
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc 
echo 'eval "$(rbenv init -)"' >> ~/.bashrc 
exec $SHELL 

# ruby-build 설치하기 
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build 
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc 
exec $SHELL

# rbenv와 Ruby에 필요한 종속성 설치치
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev
# Ruby 설치과정 간소화 Ruby-buil
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

# rbenv로 ruby 설치하기 
rbenv install 2.5.1
rbenv global 2.5.1
rbenv rehash

# Gems 에 대한 로컬문서 비활성화
echo "gem: --no-document" > ~/.gemrc 
gem install bundler  #응용프로그램 종속성 관리리
원본링크 참고 - https://yy8305.tistory.com/10

$ cd
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ exec $SHELL

$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
$ exec $SHELL

$ rbenv install 2.3.3
$ rbenv global 2.3.3
$ ruby -v



sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.6.3
rvm use 2.6.3 --default
ruby -v


# 결국 소스로 직접 설치
소스로 직접 설치하는 방법
$ cd
$ wget http://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz
$ tar -xzvf ruby-2.3.3.tar.gz
$ cd ruby-2.3.3/
$ ./configure
$ make
$ sudo make install
$ ruby -v
마지막 작업은 역시 각 패키지들의 문서들을 설치하지 말라고 지정하는 것입니다.
$ echo "gem: --no-ri --no-rdoc" > ~/.gemrc
# 참고사이트 - https://rorlab.gitbooks.io/railsguidebook/content/contents/rails/linux_install.html

# [루비 삭제하기](http://blog.naver.com/PostView.nhn?blogId=apocalypsekr&logNo=150155988059)
Ruby를 소스설치 하셨다면 소스 파일이 있는 곳에 숨김파일로
.installed.list
Cat .installed.list | xargs rm









# Tmuxinator 설치하기
gem install tmuxinator


Vim

  1. Command mode
  2. Edit mode

-----------2018-12-30-------2.31.33

-----------2018-12-30-------2.32.11

-----------2018-12-30-------2.32.18

-----------2018-12-30-------2.32.23

-----------2018-12-30-------2.32.29

-----------2018-12-30-------2.32.34

-----------2018-12-30-------2.32.38

-----------2018-12-30-------2.32.43

-----------2018-12-30-------2.32.51

-----------2018-12-30-------2.33.08

-----------2018-12-30-------2.33.13

-----------2018-12-30-------2.33.19

Subscribe to Keun's Story newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox. It's free!
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!