zsh

    0熱度

    1回答

    我試圖通過鍵入~/scripts/recomposeUi.zsh運行此腳本,但是當這樣做我收到以下錯誤: /Users/me/scripts/recomposeUi.zsh:2: command not found: dcrs 這裏是我的腳本,recomposeUi.zsh : #!/bin/zsh cd ~/myProject/ && npm run build && docker build

    0熱度

    1回答

    我有一個腳本,用於搜索註釋中包含「TODO」 註釋的源文件。此外,我使用grep,git blame,uniq和sort的級聯以得到 由編寫TODO評論的人排序的列表。 下在bash和zsh的優秀作品: #!/bin/bash for FILE in $(grep -r -i "todo" apps/business | awk '{print $1}' | sed 's/://' | sed

    0熱度

    1回答

    我想將每個終端選項卡的工作目錄寫入單個文件。我想我已經接近以下,但問題是相同(當前)目錄路徑多次寫入文件。 for x in $(ps | grep zsh) do echo "$(pwd)" >> "tabs open $(date +%Y_%m_%d_%H_%M_%S).txt" done 在此先感謝您提出我的新問題。

    0熱度

    1回答

    的主題,我想知道我怎樣才能使一個新行我➜開始,而不是它的$ USER%M和pwd之間: `function get_pwd() { echo "${PWD/$HOME/~}" } local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s) "PROMPT='%{$fg[white]%}$USER%{$fg[c

    0熱度

    1回答

    我該如何將eval "$(pyenv init -)"移動到.zshrc到.xonshrc? xonsh這樣做的語法是什麼?

    0熱度

    1回答

    (p) ➜ p git:(feature/62-api-custom-image-categories) git checkout develop Switched to branch 'develop' Your branch is ahead of 'origin/develop' by 5 commits. (use "git push" to publish y

    1熱度

    2回答

    在Linux中,C++可以返回退出代碼嗎?即是該代碼有效: int main() { return -1; } 的理由,如果這種代碼被編譯和慶典/ zsh中執行我問,返回值是255,我輕薄本由於是使用一個8位的事實返回碼,並且這意味着返回碼只能在正值之間。 這是正確的嗎?

    0熱度

    2回答

    我有以下$HOME/.zshrc文件: [[email protected]]/vagrant% cat ~/.zshrc #!/usr/bin/env zsh # BEGIN ANSIBLE MANAGED BLOCK if [ $(history | wc -l) -eq 0 ]; then # we've just shelled in; "magically" cd int

    0熱度

    1回答

    我今天買了一臺新的MacBook,但我已經被終端配置崩潰... 終端總是顯示錯誤,當我試圖改變終端外殼。 wget: command not found或curl: command not found。 於是,我試圖用iTerm2 application.It顯示curl: (6) Could not resolve host: raw.github.com。我考慮到了可能的原因是由於中國的防火牆

    -2熱度

    1回答

    安裝json(1.8.2)時發生錯誤,並且Bundler不能繼續運行 。確保gem install json -v '1.8.2'成功之前 捆綁。 我已經在我的電腦安裝的JSON Gem files will remain installed in /Users/mac/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.2 for i