1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

conemuのStartup→Auto save/restore opend tabsがPowerShellでカレントディレクトリが再現されない

Posted at

されない。

cmd.exeではちゃんとカレントディレクトリが復元されるけど、powerShellでは常にHOMEが開いてしまう。これでは正直意味が無い・・・
↓ここね
imgTemp-2016-04-14-08-23-35.png

よーしプラグイン作っちゃうぞと思ったけどプラグインは無いっぽい。マクロで頑張るしか無い
ConEmuC.exe -GuiMacro:T1 print "abc" ; keys(\"Enter\")

このコマンドで任意のタブに文字を送れる。
powershellとcmdでsaveState c:\temp\out.txt みたいなコマンドを定義して、カレントディレクトリとタブ名をテキストとして出力するようにする
そのコマンドを全部のタブに送る
起動時はそれを読み込んで全部のタブを再現する

って感じかな。そのタブで何かプロセスが動いていたらそれを止めないといけないし。
gitとか動いてたらどうするのとか。bashだったらどうするのとか、限定されたモノになりそう

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?