Git Product home page Git Product logo

Comments (3)

7doi avatar 7doi commented on September 24, 2024

Also incompatible with windows openssh server:

Microsoft Windows [版本 10.0.18363.592]       
(c) 2019 Microsoft Corporation。保留所有权利。

xxx@XXX C:\Users\xxx> sh -c "$(curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/install.sh)" && . "$HOME/.shrc_Core_Shell"
'sh' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

from core-shell-scripts.

yangyubo avatar yangyubo commented on September 24, 2024

The integration script is missing fish and Windows command support, inspiration and/or pull request are welcome.

from core-shell-scripts.

dangh avatar dangh commented on September 24, 2024

you can put this function in ~/.config/fish/conf.d/update_coreshell_cwd.fish

function update_coreshell_cwd --argument-names cwd --on-event fish_prompt
    # Identify the directory using a "file:" scheme URL, including
    # the host name to disambiguate local vs. remote paths.

    # Percent-encode the pathname.
    test -n "$cwd" || set --local cwd (pwd)
    set --local url_path (string escape --style=url -- $cwd)

    if test -n "$TMUX"
    	printf '\ePtmux;\e\e]7;%s\a\e\\' "file://""$HOSTNAME""$url_path"
    else
        printf '\e]7;%s\a' "file://""$HOSTNAME""$url_path"
    end
end

if test -n "$TMUX"
    set --local fish (which fish)
    tmux set-hook -g window-pane-changed 'run-shell "'$fish' -c \'update_coreshell_cwd \'#{pane_current_path}\'\'"'
end

from core-shell-scripts.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.