Mac下CoreShell使用lrzsz命令
2021/4/19 7:29:36
本文主要是介绍Mac下CoreShell使用lrzsz命令,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
- Mac下
Core Shell
使用lrzsz命令,上传,下载文件 - 新增
~/.bashrc_Core_Shell
# Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working Directory # # Tell the Core Shell about the current working directory at each prompt. if [ -z "$INSIDE_EMACS" ]; then update_coreshell_cwd() { # Identify the directory using a "file:" scheme URL, including # the host name to disambiguate local vs. remote paths. # Percent-encode the pathname. local url_path='' { # Use LC_CTYPE=C to process text byte-by-byte. Ensure that # LC_ALL isn't set, so it doesn't interfere. local i ch hexch LC_CTYPE=C LC_ALL= for ((i = 0; i < ${#PWD}; ++i)); do ch="${PWD:i:1}" if [[ "$ch" =~ [/._~A-Za-z0-9-] ]]; then url_path+="$ch" else printf -v hexch "%02X" "'$ch" # printf treats values greater than 127 as # negative and pads with "FF", so truncate. url_path+="%${hexch: -2:2}" fi done } if [ -n "$TMUX" ]; then printf '\ePtmux;\e\e]7;%s\a\e\\' "file://$HOSTNAME$url_path" else printf '\e]7;%s\a' "file://$HOSTNAME$url_path" fi } PROMPT_COMMAND="update_coreshell_cwd${PROMPT_COMMAND:+; $PROMPT_COMMAND}" fi
- 再执行如下命令
~/.bashrc_Core_Shell && grep -qs ".bashrc_Core_Shell" ~/.bash_profile || echo $'\n[[ -n "$SSH_TTY" || -n "$SSH_CONNECTION" ]] && [ -r "$HOME/.bashrc_Core_Shell" ] && . "$HOME/.bashrc_Core_Shell"' >> ~/.bash_profile
-
最后一步重启
Core shell
, 你就可以拖拽文件了 -
参考
https://blog.csdn.net/wenwst/article/details/102918509
这篇关于Mac下CoreShell使用lrzsz命令的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding
- 2024-06-23AI大模型企业应用实战(15)-langchain核心组件
- 2024-06-23AI大模型企业应用实战(16)-langchain核心组件
- 2024-06-23AI 大模型企业应用实战(06)-初识LangChain
- 2024-06-19EntBot.ai: AI Website Chatbot for Product Guides and Development Doc
- 2024-06-17zero-shot-learning-definition-examples-comparison
- 2024-06-06Package Easy(基于 NSIS 的打包exe安装包工具)使用方法-icode9专业技术文章分享
- 2024-06-06基于 casdoor 的 ELK 开源登录认证解决方案: elk-auth-casdoor-icode9专业技术文章分享
- 2024-05-29Elasticsearch慢查询日志配置