
다음에 실행할 몇 가지 제안된 명령을 출력하는 터미널 명령이나 여러 줄의 텍스트 출력 중 파일 경로가 있는 경우가 많습니다.
파일 경로나 명령을 다시 사용할 수 있기를 원합니다.
예:
$ nativefier --name "Asana Personal" "https://app.asana.com"
Packaging app for platform darwin x64 using electron v1.6.6
App built to /Users/Vaughan/Asana Personal-darwin-x64
$ cd /Users<press-tab>/Vaughan/Asana Personal-darwin-x64
$ brew info postgres
...
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
https://github.com/Homebrew/legacy-homebrew/issues/2510
To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see:
https://www.postgresql.org/docs/9.6/static/upgrading.html
To migrate existing data from a previous minor version (9.0-9.5) of PostgreSQL, see:
https://www.postgresql.org/docs/9.6/static/pgupgrade.html
You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`.
Do not run `brew cleanup postgresql` until you have performed the migration.
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
$ pg ctl<press-tab>-D /usr/local/var/postgres start
답변1
이는 기본적으로 원하는 정보를 캡처하기 위해 전체 터미널 세션을 기록한다는 의미입니다.
이를 위해 프로그램을 사용할 수 있습니다 script
(예: 에 넣거나 script /tmp/myuseronlyreadablefile
동일한 로그 파일에서 이 한 줄의 입력을 계속해서 .zshrc
사용하도록 프롬프트를 강화하고 script
그 후에 즉시 구문 분석). 설정한 위젯에 대한 로그 파일(모든 경로에 대한 필터 출력) zsh 자동 완성.
나는 '스크립트'의 사용이 어떤 단점을 가질 수 있는지, 그리고 이것이 좋은 오래된 '스크립트'에 비해 당신에게 얼마나 많은 노력을 의미하는지 잘 모르겠습니다.마우스로 텍스트를 표시하고 마우스 휠을 클릭하여 즉시 삽입하세요.' 기능.
답변2
tmux
와 같은 터미널 멀티플렉서는 screen
세션에서 복사 및 붙여넣기를 지원하지만 이 멀티플렉서를 사용하지 않거나 자동으로 수행하려는 경우 tee
출력을 임시 파일로 보내고 cut
및 sed
/또는 grep
빌드(그런 다음 실행)를 사용할 수 있습니다. ) 명령을 내렸다.
그러나 OSX를 사용하는 것으로 나타나므로 간단히 텍스트를 강조 표시하고 ⌘C를 눌러 복사하고 ⌘V를 눌러 붙여넣을 수 있습니다. (당신이 ssh
참여하지 않는 한)