iTerm2 Shell integration for Xonsh shell.

Overview

iTerm2 Shell Integration

iTerm2 Shell integration for Xonsh shell.

Installation

To install use pip:

xpip install xontrib-iterm2
# or: xpip install -U git+https://github.com/jnoortheen/xontrib-iterm2

Usage

# this modifies the $PROMPT function. So load it after setting $PROMPT if you have a custom value
xontrib load iterm2
Comments
  • How would we combine iterm/kitty integration?

    How would we combine iterm/kitty integration?

    Hi! Came here from xonsh/xonsh#4623 :)

    As far as I'm aware, kitty's requirements for escape sequences are a subset of iTerm2's. The only extra thing needed is $PS2.

    The prompt marking sequences are the same except that kityt needs less (more dont do any harm) and it marks PS2 which iterm doesnt.

    Given how much overlap there seems to be, I think it makes the most sense to combine the kitty/iterm integration wherever possible.

    Does it make more sense to:

    1. Turn this into a common plugin that supports both (maybe called fancy-term or term-integration or something?)
    2. Have separate xontribs for both, but move common code into a library (this is probably better)

    It seems you already have the bulk of the work done for iTerm2. That's amazing 😄

    I'm not super familiar with how "xontrib libraries" would work. What are your thoughts on this?

    opened by Techcable 5
  • Error trying to install source checkout with `pip install -e`

    Error trying to install source checkout with `pip install -e`

    Obtaining file:///Users/techcable/git/xontrib-term-integrations
      Installing build dependencies ... done
      Checking if build backend supports build_editable ... done
    ERROR: Project file:///Users/techcable/git/xontrib-term-integrations has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.
    

    Could you please add a setup.cfg or setup.py ❤️

    opened by Techcable 3
  • Escape characters shown in prompt

    Escape characters shown in prompt

    Hi, excited to see this project and been looking forward to a working xonsh successfully integrated with iterm2 (MacOS). I tried this and not certain if this is something I've missed or any other obvious settings at my end, but when having this loaded (with or without powerline2) it looks that there are some reoccurring escape-characters..

    In such case I can supply anything that would help look into this or any advice what to try next..?

    With xontrib-term-integration loaded image

    Without xontrib-term-integration loaded image

    Kind regards, Daniel

    opened by engdan77 2
  • iTerm now works from release

    iTerm now works from release

    xonsh release 0.12.0 and higher now includes the PR mentioned in the README so you do not need to install from github.

    The README should be altered to reflect that.

    opened by bestlem 1
  • Bizzare crashes with `kitty`

    Bizzare crashes with `kitty`

    See kovidgoyal/kitty#4582

    Output that seems suspicious from kitty when running as a subprocess:

    027 20:43:05.886534] [PARSE ERROR] Unknown OSC code: 1337
    [027 20:43:05.886550] [PARSE ERROR] Unknown OSC code: 1337
    

    Is OSC code: 1337 not a valid escape code for kitty?

    opened by Techcable 1
Owner
Noorhteen Raja NJ
Full-stack developer. #Python #GoLang #TypeScript #JavaScript #Dart
Noorhteen Raja NJ
xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt.

xonsh xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt. The language is a superset of Python 3.6+ with additio

xonsh 6.7k Jan 8, 2023
A simple file transfer tools, similar to rz / sz but compatible with tmux (control mode), which works with iTerm2 and has a nice progress bar

trzsz A simple file transfer tools, similar to rz/sz but compatible with tmux (control mode), which works with iTerm2 and has a nice progress bar. Why

null 561 Jan 5, 2023
Kubernetes shell: An integrated shell for working with the Kubernetes

kube-shell Kube-shell: An integrated shell for working with the Kubernetes CLI Under the hood kube-shell still calls kubectl. Kube-shell aims to provi

CloudNative Labs 2.2k Jan 8, 2023
(BionicLambda Universal SHell) A simple shell made in Python. Docs and possible C port incoming.

blush ?? (BionicLambda Universal SHell) A simple shell made in Python. Docs and possible C port incoming. Note: The Linux executables were made on Ubu

null 3 Jun 30, 2021
Bear-Shell is a shell based in the terminal or command prompt.

Bear-Shell is a shell based in the terminal or command prompt. You can navigate files, run python files, create files via the BearUtils text editor, and a lot more coming up!

MichaelBear 6 Dec 25, 2021
Bear-Shell is a shell based in the terminal or command prompt.

Bear-Shell is a shell based in the terminal or command prompt. You can navigate files, run python files, create files via the BearUtils text editor, and a lot more coming up!

MichaelBear 6 Dec 25, 2021
ICMP Reverse Shell written in Python 3 and with Scapy (backdoor/rev shell)

icmpdoor - ICMP Reverse Shell icmpdoor is an ICMP rev shell written in Python3 and scapy. Tested on Ubuntu 20.04, Debian 10 (Kali Linux), and Windows

Jeroen van Kessel 206 Dec 29, 2022
adds flavor of interactive filtering to the traditional pipe concept of UNIX shell

percol __ ____ ___ ______________ / / / __ \/ _ \/ ___/ ___/ __ \/ / / /_/ / __/ / / /__/ /_/ / / / .__

Masafumi Oyamada 3.2k Jan 7, 2023
Fetch is use to get information about anything on the shell using Wikipedia.

Fetch Search wikipedia article on command line [Why This?] [Support the Project] [Installation] [Configuration] Why this? Fetch helps you to quickly l

Yash Singh 340 Dec 18, 2022
A simple reverse shell in python

RevShell A simple reverse shell in python Getting started First, start the server python server.py Finally, start the client (victim) python client.py

Lojacopsen 4 Apr 6, 2022
a-shell: A terminal for iOS, with multiple windows

a-shell: A terminal for iOS, with multiple windows

Nicolas Holzschuch 1.7k Jan 2, 2023
A simple python implementation of a reverse shell

llehs A python implementation of a reverse shell. Note for contributors The project is open for contributions and is hacktoberfest registered! llehs u

Archisman Ghosh 2 Jul 5, 2022
Just a shell writed on Python

HIGHSHELL (also hSH or HS) Just a shell writed on Python Send bug report • How to use the shell • Broked features • Licenses How to use the shell Inst

0LungSkill0 2 Jan 4, 2022
A Reverse Shell Python Packages

A Reverse Shell Python Packages

null 1 Nov 3, 2021
The Pythone Script will generate a (.)sh file with reverse shell codes then you can execute the script on the target

Pythone Script will generate a (.)sh file with reverse shell codes then you can execute the script on the targetPythone Script will generate a (.)sh file with reverse shell codes then you can execute the script on the target

Boy From Future 15 Sep 16, 2022
A communist shell written in Python

kash A communist shell written in Python It doesn't support escapes, quotes, comment lines, |, &&, >, >> or similar yet. If you need help, get it from

Çınar Yılmaz 1 Dec 10, 2021
A web shell client written in python.

Webshell client A webshell client written in python. Only works well for linux for the time being. Why? Because there are too many heavy webshells. So

tchar 1 Dec 7, 2021
A begginer reverse shell tool python.

A begginer reverse shell tool python. Este programa é para apenas estudo e conhecimento. Não use isso em outra pessoas. Não me responsabilizo por uso

Dio brando 2 Jan 5, 2022
A begginer reverse shell tool python.

A begginer tools for hacking. The theme of this repository is to bring some ready-made open-source tools for anyone new to the world of hacking. This

Dio brando 2 Jan 5, 2022