相关问题:How to change the terminal prompt to just current directory?
我已将you need to modify like below
fetch(url)
.then((resp) => resp.json()) // Transform the data into json
.then(function(data) {
// your code logic with the response
})
})
添加到export PS1="\w\$ "
,但命令行的提示只显示:
~/.bash_profile
它识别\w$
字符的反斜杠转义符,但不识别文件路径。当我使用大写“W'
答案 0 :(得分:0)