タグ

shellに関するiga_kのブックマーク (25)

  • いちいちシェルコマンド思い出せないので、ChatGPTで自然言語からスクリプトを生成するツールつくった - Qiita


    ChatGPTPythonOpenAIChatGPTlangchain ChatGPT API便使  ChatGPT  wannaChatGPTbash script 便
    いちいちシェルコマンド思い出せないので、ChatGPTで自然言語からスクリプトを生成するツールつくった - Qiita
  • tree コマンドが無い環境で tree コマンドを実現 - Qiita

    tree コマンドは便利 Linux における tree コマンドは便利ですね。しかし標準コマンドではないため初めて操作するサーバや手軽に tree をインストール出来ない環境だとディレクトリ構造を奇麗にツリー上に表示することが出来ません。 その場合は find や sed を使って tree コマンドを代替しましょう。 find と sed で代替 pwd;find . | sort | sed '1d;s/^\.//;s/\/\([^/]*\)$/|--\1/;s/\/[^/|]*/| /g'

    tree コマンドが無い環境で tree コマンドを実現 - Qiita
    iga_k
    iga_k 2022/10/08
    treeのshell実装
  • Bash: .bashrcと.bash_profileの違いを今度こそ理解する|TechRacho by BPS株式会社


    hachi8833Slackmorimorihoge ~/.bashrcrsyncssh : rsync - Qiita .bashrc.bash_profileLinuxmacOS bashshBourne ShellGUI bashman 
    Bash: .bashrcと.bash_profileの違いを今度こそ理解する|TechRacho by BPS株式会社
    iga_k
    iga_k 2022/04/14
    お作法
  • GitHub - akermu/emacs-libvterm: Emacs libvterm integration

    The short answer is: unparalleled performance and compatibility with standard command-line tools. For the long answer, let us discuss the differences between eshell, shell, term and vterm: eshell: it is a shell completely implemented in Emacs Lisp. It is well-integrated in Emacs and it runs on Windows. It does not support command line tools that require terminal manipulation capabilities (e.g., nc

    GitHub - akermu/emacs-libvterm: Emacs libvterm integration
    iga_k
    iga_k 2021/04/17
    vterm
  • EmacsをTerminalとして使う - tototoshi の日記


    emacs-libvterm  emacs-libvterm https://github.com/akermu/emacs-libvterm EmacsTerminalterm-modeeshell使使 emacs-libvtermTerminal.apptmux neovim/libvterm vim tigncurses使
    EmacsをTerminalとして使う - tototoshi の日記
    iga_k
    iga_k 2021/04/17
    emacs-libvterm
  • iTerm2の機能を使いこなして日頃の作業の効率をあげたい2020 - stefafafan の fa は3つです


     Advent Calendar 20206qiita.com 5 id:mizdra polyfill polyfill www.mizdra.net 使便Mac使iTerm2 iterm2.com Triggers使 (ver.3.4使) tl;dr 
    iTerm2の機能を使いこなして日頃の作業の効率をあげたい2020 - stefafafan の fa は3つです
    iga_k
    iga_k 2020/12/29
    iterm2っていろいろ設定できるのだなー
  • Starship: Cross-Shell Prompt

    互換性優先一般的なほとんどのOSの一般的なほとんどのシェル上で動作します。 あらゆるところで使用してください!

    Starship: Cross-Shell Prompt
    iga_k
    iga_k 2020/09/18
    shell promptをいい感じにしてくれるやーつ
  • Echoing the last command run in Bash?

    I am trying to echo the last command run inside a bash script. I found a way to do it with some history,tail,head,sed which works fine when commands represent a specific line in my script from a parser standpoint. However under some circumstances I don't get the expected output, for instance when the command is inserted inside a case statement: The script: #!/bin/bash set -o history date last=$(ec

    Echoing the last command run in Bash?
    iga_k
    iga_k 2020/05/02
    最後に実行したコマンドの取り方
  • Kuroigamen - Fjord, Inc(株式会社フィヨルド)


    KuroigamenRails使11
    Kuroigamen - Fjord, Inc(株式会社フィヨルド)
    iga_k
    iga_k 2019/12/24
    shell入門 - 「本当は怖くない黒い画面入門」
  • GitHub - direnv/direnv: unclutter your .profile

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - direnv/direnv: unclutter your .profile
    iga_k
    iga_k 2019/10/30
    “direnv is an extension for your shell. It augments existing shells with a new feature that can load and unload environment variables depending on the current directory.”
  • Amazon.co.jp: 新しいLinuxの教科書: 三宅英明, 大角祐介: 本

    Amazon.co.jp: 新しいLinuxの教科書: 三宅英明, 大角祐介: 本
    iga_k
    iga_k 2019/07/10
    うづらさん推しのshellの教科書
  • zshのキーバインドで余っているキーを探す - mollifier delta blog


     zshzsh  使使()使() 調 使Ctrl+C-*調 % bindkey -d #  % bindkey -e # emacs使 % bindkey #  "^@" set-mark
    zshのキーバインドで余っているキーを探す - mollifier delta blog
  • とにかく使ってみる、最初のプログラム ls、2つ目のプログラムpwd - Fjord, Inc(株式会社フィヨルド)


    使  3  使  使 使使 Mac >    Mac
    とにかく使ってみる、最初のプログラム ls、2つ目のプログラムpwd - Fjord, Inc(株式会社フィヨルド)
    iga_k
    iga_k 2019/01/05
    shellの資料ってあんまりないので、必要最小限を丁寧に説明しててありがたい。信頼と実績のフィヨルドブートキャンプ資料。
  • 初心者向け、「上手い」シェルスクリプトの書き方メモ - Qiita

    ここ最近、沢山シェルスクリプトを書くようになりました。 元々あまりシェルスクリプトを書いたこと無かったので、色々と勉強しつつ書いてるのですが、 他のプログラミング言語とはちょっと違って独特なクセというか、発見の度におぉー!ってなることが沢山あって楽しいです。 そんなわけで、最近学んだり参考にした中で特に感動したシェルの上手い書き方をまとめてみます。 きっとまだ知らないこととかもっと上手くやる方法なんかが沢山見つかりそうなので、 もっといいやり方あるよ!って方はコメントください 何もしない : (コロン)コマンド シェルを書いていた時に非常に欲しかったコマンドがこれ!何もしない! : というコマンド(?)を利用すると、何もせずに終了ステータス0(つまり正常終了)を返します。 これが様々な事に使える万能コマンドで、これによって面倒なエラー処理を簡潔にできたり、 入力や出力のリダイレクト元/先と

    初心者向け、「上手い」シェルスクリプトの書き方メモ - Qiita
    iga_k
    iga_k 2017/04/21
  • GitHub - idobata/hokaido: HND✈CTS

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - idobata/hokaido: HND✈CTS
    iga_k
    iga_k 2015/10/29
    idobataさん作のshellのコマンド群をブロードキャスト&受信できるツール。おもしろいなぁ。
  • percol 入れて zsh と組み合わせたら超便利

    import sys, commands from percol.command import SelectorCommand from percol.key import SPECIAL_KEYS from percol.finder import FinderMultiQueryMigemo, FinderMultiQueryRegex ## prompt # Case Insensitive / Match Method に応じてプロンプトに表示 def dynamic_prompt(): prompt = ur"" if percol.model.finder.__class__ == FinderMultiQueryMigemo: prompt += "[Migemo]" elif percol.model.finder.__class__ == FinderMultiQuery

    percol 入れて zsh と組み合わせたら超便利
    iga_k
    iga_k 2014/06/28
    canything みたいな。便利。
  • naoya_itoの火を噴いたシェルtips - Togetterまとめ

    Naoya Ito @naoya_ito シェルでパスワード入力プロンプトでるじゃないですか。途中まで打って間違えたとするじゃないですか。Ctrl + u 打つとリセットできるの知ってた? 俺は知ってた 2014-04-07 19:40:06

    naoya_itoの火を噴いたシェルtips - Togetterまとめ
    iga_k
    iga_k 2014/04/21
    よいまとめ。そしてemacs。
  • csshXが素晴らしすぎる件


     2014 psshvissh LinuxCluster SSH使LinuxMac使cluster SSHcsshX  brew使 [program lang=bash escaped=tru
    iga_k
    iga_k 2014/01/29
    複数のsshを同時に操作できて便利
  • Unixシェル - Wikipedia


    使 ?: "Unix"   ·  ·  · CiNii · J-STAGE · NDL · dlib.jp ·  · TWL202012 KDE Plasma 5zshbashksh UnixUnix UnixBourne Shell  C Shell Bourne Shell shAT&TUNIX
    Unixシェル - Wikipedia
    iga_k
    iga_k 2013/11/11
    .profile とか .bashrc とかの違いがまとめてある
  • http://www.machu.jp/posts/20130112/p01/

    http://www.machu.jp/posts/20130112/p01/