課程
/后端開發
/Java
/Spring Boot進階之Web進階
iteam的插件?
2018-06-30
源自:Spring Boot進階之Web進階 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?接下來要怎么做呢?謝謝
? ??4
@gyzit?touch ~/.bash_sessions_disable?10.11 的這個功能感覺不實用 禁用掉好了
? ??5
@kittyoung?可是還是不能退出終端后顯示上次的歷史紀錄?按你說的運行了,之后運行 set|grep his 變成這個:?GuanYuzhesMBP:~ GuanYuzhe$ set|grep his?HISTFILE=/Users/GuanYuzhe/.bash_history?SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor?GuanYuzhesMBP:~ GuanYuzhe$
? ??6
@kittyoung?我之前運行過 oh-my-zsh 自動包的,不知道和這個有無關系。
? ??7
@gyzit?cat ~/.bash_history?還是不能退出終端后顯示上次的歷史紀錄?顯示上次的歷史紀錄 是指 運行 history 嗎?
? ??8
@kittyoung?是的沒錯,是運行過的命令的紀錄。我朋友的機器在終端輸入 exit 后,會有 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?就是在終端按鍵盤 上箭頭 的那個歷史紀錄,沒有退出終端是能看到的,退出后就看不到了。謝謝
? ??10
@gyzit?sudo chown GuanYuzhe ~/.bash_history
? ??11
@kittyoung?可以了?。?! 萬分謝謝!?。。。?!
舉報
《2小時學習Spring Boot》之進階教程,針對Web方面的相關技巧
2 回答老師講課用的iterm2的自動提示是使用了什么插件?
3 回答注入的為什么提示不能用呢
4 回答為什么這里的工具類不需要裝配成Bean,就可以調用
1 回答終端里的智能提示是怎么來的?
2 回答大家知道那個發送請求的工具是啥嗎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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?接下來要怎么做呢?謝謝
? ??4
kittyoung? ?2015-10-13 20:48:49 +08:00@gyzit?
touch ~/.bash_sessions_disable?
10.11 的這個功能感覺不實用 禁用掉好了
? ??5
gyzit? ?2015-10-13 20:59:51 +08:00@kittyoung?可是還是不能退出終端后顯示上次的歷史紀錄?
按你說的運行了,之后運行 set|grep his 變成這個:?
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?我之前運行過 oh-my-zsh 自動包的,不知道和這個有無關系。
? ??7
kittyoung? ?2015-10-13 21:05:52 +08:00@gyzit?cat ~/.bash_history?
還是不能退出終端后顯示上次的歷史紀錄?
顯示上次的歷史紀錄 是指 運行 history 嗎?
? ??8
gyzit? ?2015-10-13 21:08:43 +08:00@kittyoung?是的沒錯,是運行過的命令的紀錄。我朋友的機器在終端輸入 exit 后,會有 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?就是在終端按鍵盤 上箭頭 的那個歷史紀錄,沒有退出終端是能看到的,退出后就看不到了。謝謝
? ??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?可以了?。?! 萬分謝謝!?。。。?!