zsh 와 zsh-completions 설치하기 mac에서 설치 brew install zsh zsh-completionsubuntu 18.04에서 설치 sudo apt install zshoh-my-zsh 설치 [mac / ubuntu 공통] sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" zsh-syntax-highlighting 과 zsh-autosuggestions 설치하기 [mac / ubuntu 공통] # zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting...
1. 글 입력하기a커서 위치의 다음 칸부터부터 끼워넣기(append)A커서가 있는 줄의 끝에서부터 끼워넣기i커서 위치부터 끼워넣기(insert)I커서가 있는 줄의 맨 앞에서부터 끼워넣기o커서 바로 아래에 줄을 만들고 끼워넣기(open line)O커서 바로 위에 줄을 만들고 끼워넣기2. 커서 이동하기h한칸 왼쪽으로 이동l한칸 오른쪽으로 이동j한줄 아래로 이동k한줄 위로 이동w다음 단어의 첫 글자로 이동W다음 단어의 첫 글자로 이동b이전 단어의 첫 글자로 이동B이전 단어의 첫 글자로 이동e단어의 마지막 글자로 이동E단어의 마지막 글자로 이동^그 줄의 첫 글자로 이동$그 줄의 마지막 글자로 이동0그 줄의 처음으로 이동다음 줄의 첫 글자로 이동+다음 줄의 첫 글자로 이동–윗줄의 첫 글자로 이동(이전 문장의 첫 ..
❯ php -a Interactive shell php > $name = 'foo'; php > echo 'Hello $name. $name, you have 10 unread messages'; Hello $name. $name, you have 10 unread messages php > echo "Hello $name. $name, you have 10 unread messages"; Hello foo. foo, you have 10 unread messages php >위 구문에서 작은 따옴표와 큰 따옴표의 차이를 주목해 보자. 작은 따옴표에서는 변수의 표기 자체를 문자열로 인식을 할 뿐 변수의 내용을 전달하지 못하는 반면, 큰 따옴표에서는 변수의 값을 그대로 문자열에 전달하여 끼워 넣을 수 있다..
- Total
- Today
- Yesterday