manywaypark's Blog
개발, 검색, 함수

Emacs Shell에서 PATH 문제

tips & tricks/Mac 2018. 11. 3. 00:17 by manywaypark

예전에는 이 문제가 안생겼던거같은데, 모하비 업그레이드 후에 생긴것같다.

purcell의 emacs.d를 사용하면 자동으로 exec-path-from-shell을 호출하는 것으로 보이는데 이상하다.


일단 향후 해결을 위해 글을 남김.


TBD


refs: 

https://emacs.stackexchange.com/questions/10722/emacs-and-command-line-path-disagreements-on-osx

https://emacs.stackexchange.com/questions/461/configuration-of-eshell-running-programs-from-directories-in-path-env-variable

http://ergoemacs.org/emacs/emacs_env_var_paths.html

키저장:

ssh-add -K [path/to/private SSH key]


저장된 키 리스트 보기:

ssh-add -l


ref: https://superuser.com/questions/88470/how-to-use-mac-os-x-keychain-with-ssh-keys


happy hackin'

 입력 소스 변경을 하기 위한 맥의 기본설정이 Ctrl + Space로 몇년전에 바뀌었는데, 그때 적용만하고 메모를 남기지 않아 이제사 남김.

Emacs 사용자는 Ctrl + Space의 경우 블럭 선택(mark set/clear)이기 때문에 이 설정을 하지 않을 수가 없다.

http://macnews.tistory.com/3736


happy hackin'

Mac에서 스크린샷 찍기

tips & tricks/Mac 2017. 3. 22. 14:07 by manywaypark

링크에 잘 설명 되어 있다.

요점은 shift + command + (control) + 3 or 4


https://support.apple.com/ko-kr/HT201361

http://www.wikihow.com/Take-a-Screenshot-in-Mac-OS-X


happy hackin'

[macport] port select --set

tips & tricks/Mac 2016. 7. 6. 10:49 by manywaypark

macport를 쓰다보면 같은 package이지만 여러 버전이 있는 경우가 있다.

postgresql의 예를 들자면 아래와같이 하면 9.4버전으로 설정을 맞추어준다.

sudo port select --set postgresql postgresql94

설정을 맞춘다는 것의 의미는 각종 파일 및 링크(eg, /opt/local/bin/pg_config 등)를 업데이트해주는 것을 말한다.


ref: http://stackoverflow.com/questions/7832296/usage-of-postgresql-select-on-macports


happy hackin'


PS. packagename_select 패키지를 설치해야되는 듯. postgresql은 postgresql_select

R같은 한 글자로 된 패키지를 찾으려고 port search R 처럼 하면 엄청나게 많은 패키지가 리스팅된다.

아래처럼 하면 정확한 이름으로 찾아준다.

$ port search --exact R

R @3.3.0 (math, science)

    R is GNU S - an interpreted language for statistical computing


ref: http://johnlaudun.org/20140721-install-r-with-macports/


happy hackin'

[Mac] byobu on max osx

tips & tricks/Mac 2016. 3. 21. 21:15 by manywaypark

byobu는 내가 쓰는 macport에서는 package로 제공되지 않는구나. Orz

homebrew에서는 지원되는듯...

여튼 아래에 설치로그를 남긴다. 

$ git checkout https://github.com/dustinkirkland/byobu.git

......

$ cd byobu

$ autoreconf -i

configure.ac:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:

configure.ac:6: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

Makefile.am: error: required file './ChangeLog' not found

autoreconf: /opt/local/bin/automake failed with exit status: 1

$ touch ChangeLog

$ autoreconf -i

......

$ make

......

$ byobu

readlink: illegal option -- f

......

$ sudo port install tmux coreutils

......

$ byobu

--> success!!


ref: http://apple.stackexchange.com/questions/64395/byobu-using-invalid-readlink-f-option-on-os-x-mountain-lion


happy hackin'

1 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
Linux/Unix (57)
Win (19)
Qt (11)
Xcode (1)
Mac (8)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

03-29 01:16