zsh

Zsh : command not found : ng on new Mac OS Catalina

混江龙づ霸主 提交于 2021-02-06 10:42:14
问题 I have download the new Mac OS Version Beta of Catalina. Now I should start to use Zsh. But when I want to run a Angular project in Atom, I receveid this message : "The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh . For more details, please visit https://support.apple.com/kb/HT208050." I'am already using zsh Terminal but he doesn't found the ng commands. 回答1: I also lost access to my commands after moving over to zsh following the

How do I yank into the system register from v-imode?

你离开我真会死。 提交于 2021-02-05 06:37:45
问题 I'd like to yank text from a zsh command while in vi-mode with y and paste it into my web-browser/text-editor, etc. Currently it seems that yanking text while in vi-mode only allows pasting back into zsh- has anyone had success yanking into the system clipboard? 回答1: Create a widget that executes the internal vi-yank widget and copies the zle clipboard (current position in kill ring) to the X11 clipboard using xclip(1) : function vi-yank-xclip { zle vi-yank echo "$CUTBUFFER" | xclip -i }

How to set LD_LIBRARY_PATH/DYLD_LIBRARY_PATH on macos

旧城冷巷雨未停 提交于 2021-02-04 16:11:26
问题 On macos catalina '''echo $VARIABLE''' I see the value of the variable but java couldn't read the system variable. In linux there is not a problem so I think it is a zsh issue. Java read all the variables env , except LD_LIBRARY_PATH and DYLD_LIBRARY_PATH 回答1: Variables LD_LIBRARY_PATH / DYLD_LIBRARY_PATH are not passed to the environment of a child process on macOS if System Integrity Protect (SIP) is enabled. To confirm : #!/bin/zsh cat << EOF > EnvDemo.java public class EnvDemo { public

开发者必备linux的alias

♀尐吖头ヾ 提交于 2021-02-03 10:35:23
1.alias 以安装了zsh为例,其中通过在 ~/.zshrc 追加 alias,减少常用指令的时间时间开销 ,"shift + g"跳到文件最后一行 #git alias ga="git add" alias gl="git log" alias gt="git status" alias gc="git commit" alias gco="git checkout" alias gcb="git checkout -b" alias gp="git push" alias gpl="git pull" alias gd="git diff" alias gb="git branch" alias gst="git status" alias gg="git add . && git commit -m 'feat: auto commit' && git push" 2.nodejs alias n10="nvm use 10.22.0" alias dev="npm run dev" alias debug="npm run debug" 3.common alias czsh="vi ~/.zshrc" alias szsh="source ~/.zshrc" alias la='ls -a' alias lla='ls -al' alias showip=

MacOS Catalina launchd can't open input file error

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 12:31:49
问题 Why won't launchd load my zsh program? I'm befuddled. My testplisterror.log gives me this error: /bin/zsh: can't open input file: /Users/controlroom/Desktop/Bin/testplist.zsh -- below is my com.testplist.plist file located in the LaunchAgents directory. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.testplist.plist</string> <key

NPM Live-server not installing on zsh

邮差的信 提交于 2021-01-29 08:49:31
问题 I have been trying to install live-server globally with: npm install -g live-server but I keep on getting the error message below; mac@Edozie ~ % npm install -g live-server npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated opn@6.0.0: The package has been renamed to `open` npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

Mas OS Big Sur update - Python3 / conda / pip not found

僤鯓⒐⒋嵵緔 提交于 2021-01-28 23:03:51
问题 Sorry if this is a stupid question. I use python/jupyter a lot and it's stopped working after updating from Mac OS High Sierra to Big Sur. I'm trying to figure out why, but I'm not great with command line stuff. The problem. When I try python3 , pip -v , conda , etc. it says "command not found". python still seems to run, but it's 2.7 and I know I had 3 (I probably had a few versions from untidy file systems). I want to avoid reinstalling all my packages and things again, because I know it's

Mas OS Big Sur update - Python3 / conda / pip not found

风格不统一 提交于 2021-01-28 22:44:02
问题 Sorry if this is a stupid question. I use python/jupyter a lot and it's stopped working after updating from Mac OS High Sierra to Big Sur. I'm trying to figure out why, but I'm not great with command line stuff. The problem. When I try python3 , pip -v , conda , etc. it says "command not found". python still seems to run, but it's 2.7 and I know I had 3 (I probably had a few versions from untidy file systems). I want to avoid reinstalling all my packages and things again, because I know it's

What are the differences in echo between zsh and bash?

喜夏-厌秋 提交于 2021-01-28 10:56:20
问题 In bash, in this specific case, echo behaves like so: $ bash -c 'echo "a\nb"' a\nb but in zsh the same thing turns out very differently...: $ zsh -c 'echo "a\nb"' a b and fwiw in fish, because I was curious: $ fish -c 'echo "a\nb"' a\nb I did realize that I can run: $ zsh -c 'echo -E "a\nb"' a\nb But now I am worried that I'm about to stumble into more gotchas on such a basic operation. (Thus my investigation into fish: if I'm going to have to make changes at such a low level for zsh, why not

What are the differences in echo between zsh and bash?

风流意气都作罢 提交于 2021-01-28 10:50:51
问题 In bash, in this specific case, echo behaves like so: $ bash -c 'echo "a\nb"' a\nb but in zsh the same thing turns out very differently...: $ zsh -c 'echo "a\nb"' a b and fwiw in fish, because I was curious: $ fish -c 'echo "a\nb"' a\nb I did realize that I can run: $ zsh -c 'echo -E "a\nb"' a\nb But now I am worried that I'm about to stumble into more gotchas on such a basic operation. (Thus my investigation into fish: if I'm going to have to make changes at such a low level for zsh, why not