課程
/后端開(kāi)發(fā)
/Java
/Spring Boot進(jìn)階之Web進(jìn)階
iteam的插件?
2018-06-30
源自:Spring Boot進(jìn)階之Web進(jìn)階 2-7
正在回答
? ??1
set|grep his
? ??2
@kittyoung?GuanYuzhesMBP:~ GuanYuzhe$ set|grep his?HISTFILE=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.historynew?SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor?SHELL_SESSION_HISTFILE=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.history?SHELL_SESSION_HISTFILE_NEW=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.historynew?SHELL_SESSION_HISTFILE_SHARED=/Users/GuanYuzhe/.bash_history?shell_session_history_allowed ()?if shopt -q histappend; then?shell_session_history_check ()?if shell_session_history_allowed; then?shell_session_history_enable;?if [ "$PROMPT_COMMAND" = "shell_session_history_check" ]; then?if [[ $PROMPT_COMMAND =~ (.*)(; *shell_session_history_check *| *shell_session_history_check *; *)(.*) ]]; then?shell_session_history_enable ()?shell_session_history_allowed && shell_session_save_history;?shell_session_save_history ()?shell_session_history_enable;?history -a;?echo -ne '\n...copying shared history...';?echo -ne '\n...saving history...';?echo -n 'truncating history files...';
? ??3
@kittyoung?接下來(lái)要怎么做呢?謝謝
? ??4
@gyzit?touch ~/.bash_sessions_disable?10.11 的這個(gè)功能感覺(jué)不實(shí)用 禁用掉好了
? ??5
@kittyoung?可是還是不能退出終端后顯示上次的歷史紀(jì)錄?按你說(shuō)的運(yùn)行了,之后運(yùn)行 set|grep his 變成這個(gè):?GuanYuzhesMBP:~ GuanYuzhe$ set|grep his?HISTFILE=/Users/GuanYuzhe/.bash_history?SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor?GuanYuzhesMBP:~ GuanYuzhe$
? ??6
@kittyoung?我之前運(yùn)行過(guò) oh-my-zsh 自動(dòng)包的,不知道和這個(gè)有無(wú)關(guān)系。
? ??7
@gyzit?cat ~/.bash_history?還是不能退出終端后顯示上次的歷史紀(jì)錄?顯示上次的歷史紀(jì)錄 是指 運(yùn)行 history 嗎?
? ??8
@kittyoung?是的沒(méi)錯(cuò),是運(yùn)行過(guò)的命令的紀(jì)錄。我朋友的機(jī)器在終端輸入 exit 后,會(huì)有 saving session 的字樣,我就是直接 logout 。?GuanYuzhesMBP:~ GuanYuzhe$ cat ~/.bash_history?cat: /Users/GuanYuzhe/.bash_history: Permission denied?GuanYuzhesMBP:~ GuanYuzhe$ sudo cat ~/.bash_history?sh /Users/GuanYuzhe/Desktop/disable_activation_osx?exit?GuanYuzhesMBP:~ GuanYuzhe$
? ??9
@kittyoung?就是在終端按鍵盤(pán) 上箭頭 的那個(gè)歷史紀(jì)錄,沒(méi)有退出終端是能看到的,退出后就看不到了。謝謝
? ??10
@gyzit?sudo chown GuanYuzhe ~/.bash_history
? ??11
@kittyoung?可以了?。?! 萬(wàn)分謝謝?。。。。?!
舉報(bào)
《2小時(shí)學(xué)習(xí)Spring Boot》之進(jìn)階教程,針對(duì)Web方面的相關(guān)技巧
2 回答老師講課用的iterm2的自動(dòng)提示是使用了什么插件?
3 回答注入的為什么提示不能用呢
4 回答為什么這里的工具類(lèi)不需要裝配成Bean,就可以調(diào)用
2 回答大家知道那個(gè)發(fā)送請(qǐng)求的工具是啥嗎
1 回答終端里的智能提示是怎么來(lái)的?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-07-02
? ??1
kittyoung? ?2015-10-13 20:31:25 +08:00set|grep his
? ??2
gyzit? ?2015-10-13 20:37:57 +08:00@kittyoung?
GuanYuzhesMBP:~ GuanYuzhe$ set|grep his?
HISTFILE=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.historynew?
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor?
SHELL_SESSION_HISTFILE=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.history?
SHELL_SESSION_HISTFILE_NEW=/Users/GuanYuzhe/.bash_sessions/8A86197D-6AEC-4434-AA70-287C19347466.historynew?
SHELL_SESSION_HISTFILE_SHARED=/Users/GuanYuzhe/.bash_history?
shell_session_history_allowed ()?
if shopt -q histappend; then?
shell_session_history_check ()?
if shell_session_history_allowed; then?
shell_session_history_enable;?
if [ "$PROMPT_COMMAND" = "shell_session_history_check" ]; then?
if [[ $PROMPT_COMMAND =~ (.*)(; *shell_session_history_check *| *shell_session_history_check *; *)(.*) ]]; then?
shell_session_history_enable ()?
shell_session_history_allowed && shell_session_save_history;?
shell_session_save_history ()?
shell_session_history_enable;?
history -a;?
echo -ne '\n...copying shared history...';?
echo -ne '\n...saving history...';?
echo -n 'truncating history files...';
? ??3
gyzit? ?2015-10-13 20:43:53 +08:00@kittyoung?接下來(lái)要怎么做呢?謝謝
? ??4
kittyoung? ?2015-10-13 20:48:49 +08:00@gyzit?
touch ~/.bash_sessions_disable?
10.11 的這個(gè)功能感覺(jué)不實(shí)用 禁用掉好了
? ??5
gyzit? ?2015-10-13 20:59:51 +08:00@kittyoung?可是還是不能退出終端后顯示上次的歷史紀(jì)錄?
按你說(shuō)的運(yùn)行了,之后運(yùn)行 set|grep his 變成這個(gè):?
GuanYuzhesMBP:~ GuanYuzhe$ set|grep his?
HISTFILE=/Users/GuanYuzhe/.bash_history?
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor?
GuanYuzhesMBP:~ GuanYuzhe$
? ??6
gyzit? ?2015-10-13 21:01:18 +08:00@kittyoung?我之前運(yùn)行過(guò) oh-my-zsh 自動(dòng)包的,不知道和這個(gè)有無(wú)關(guān)系。
? ??7
kittyoung? ?2015-10-13 21:05:52 +08:00@gyzit?cat ~/.bash_history?
還是不能退出終端后顯示上次的歷史紀(jì)錄?
顯示上次的歷史紀(jì)錄 是指 運(yùn)行 history 嗎?
? ??8
gyzit? ?2015-10-13 21:08:43 +08:00@kittyoung?是的沒(méi)錯(cuò),是運(yùn)行過(guò)的命令的紀(jì)錄。我朋友的機(jī)器在終端輸入 exit 后,會(huì)有 saving session 的字樣,我就是直接 logout 。?
GuanYuzhesMBP:~ GuanYuzhe$ cat ~/.bash_history?
cat: /Users/GuanYuzhe/.bash_history: Permission denied?
GuanYuzhesMBP:~ GuanYuzhe$ sudo cat ~/.bash_history?
sh /Users/GuanYuzhe/Desktop/disable_activation_osx?
exit?
GuanYuzhesMBP:~ GuanYuzhe$
? ??9
gyzit? ?2015-10-13 21:09:56 +08:00@kittyoung?就是在終端按鍵盤(pán) 上箭頭 的那個(gè)歷史紀(jì)錄,沒(méi)有退出終端是能看到的,退出后就看不到了。謝謝
? ??10
kittyoung? ?2015-10-13 21:11:45 +08:00@gyzit?sudo chown GuanYuzhe ~/.bash_history
? ??11
gyzit? ?2015-10-13 21:12:52 +08:00@kittyoung?可以了?。?! 萬(wàn)分謝謝?。。。。?!