LoginSignup
43
53

More than 5 years have passed since last update.

Pythonista 3 にStaSh をインストールする。

Last updated at Posted at 2018-09-03

StaShとは

Pythonista 3上でpipなどのコマンド操作ができるようになります。
名前はPythonista Shellを略したそうです。

- 参考サイト -
StaSh - Shell Like an Expert in Pythonista | omz:forum

インストール

コンソールに以下をペーストして実行します。

import requests as r; exec(r.get('http://bit.ly/get-stash').text)

インストールが完了すると次のメッセージが表示されます。

Please Restart Pythonista and run launch_stash.py under the Home directory to start StaSh.

アプリを再起動してlaunch_stash.pyを実行してStaShを起動して下さい。

ファイルリストlaunch_stash.pyとstash_extensionsが追加されます。
Pythonista3 v3.2ではファイルやディレクトリの構成が変わり次の場所に追加されます。
SCRIPT LIBLARY
 ┗ This iPhone
  ┗ launch_stash.py

Python Modules
 ┗ site-packages
  ┗ stash

実行

launch_stash.pyを実行するとコンソールの横にタブが追加されターミナルのような画面になります。

image.png

helpを実行すると使用できるコマンドがズラッと表示されます。

以下のコマンドが使えるみたいです。
help(StaSh) v0.7.1 - Qiita
alias, cat, cd, clear, cowsay, cp, crypt, curl, cut, dropbox_setup, du, easy_config, echo, edit, exit, fg, find, ftpserver, gci, gh, git, grep, head, httpserver, jobs, kill, latte, ls, mail, man, mc, md5sum, mkdir, monkeylord, more, mount, mv, openin, pbcopy, pbpaste, ping, Usage, pip, printenv, printhex, ptinstaller, pwd, py-tree, python, python3, quicklook, rm, rmdir, scp, selfupdate, sha1sum, sha256sum, sort, source, sqlite, ssh, ssh-keygen, stashconf, tail, tar, telnet, totd, touch, umount, uniq, unzip, version, wc, webviewer, wget, whatis, which, wol, xargs, zip

43
53
2

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
43
53