解決OSX使用oh-my-zsh後.bash_profile自定義失效
場景描述
為了使OSX自帶的終端在使用上更加順手,便安裝了oh-my-zsh
外掛,
但發現之前在.bash_profile
自定義的一些內容都失效了。
問題分析
oh-my-zsh
有自己的配置檔案,覆蓋了.bash_profile
的內容。
解決方法
vi ~/.zshrc
,在最後一行加入source ~/.bash_profile
,
這樣就可以”繼承”.bash_profile
的配置了。
執行source ~/.zshrc
,讓配置生效,重新使用,一切OK!
相關推薦
解決OSX使用oh-my-zsh後.bash_profile自定義失效
場景描述 為了使OSX自帶的終端在使用上更加順手,便安裝了oh-my-zsh外掛, 但發現之前在.bash_profile自定義的一些內容都失效了。 問題分析 oh-my-zsh有自己的配置檔案,覆蓋了.bash_profile的內容。 解決方法 vi ~/.zshrc,在最後一行加入sour
解決Mac安裝oh-my-zsh後出現 command not found的問題
安裝oh-my-zsh後,之前安裝的mysql、anaconda等在命令列輸入顯示command not found問題,解決方法如下: 1、由於.zshrc 沒有配置相關環境變數設定,需要將bash 中.bash_profile 全部環境變數加入 open .zshrc 2、下拉找到#
解決方法:multi_role工程加自定義LCD後編譯失敗
一、背景 使用 simplelink_cc2640r2_sdk_1_40_00_45 的 multi_role 工程,加入自定義LCD檔案(如GUA_LCD)後編譯失敗,出現 error #10099-D: program will not fit into available memo
Android解決style檔案不能使用自定義屬性
在自定義view的時候,通常會自定義一些屬性,為了便於統一使用,在style檔案中把自定義屬性賦值。但是我卻在自定義view中,取不到style中設定的值,如果在xml中設定屬性值卻能正常獲取,這是為什麼呢? 在res/attrs中自定義屬性attrs.xml: <
VUE DOM載入後執行自定義事件
最近想用vue做一個小東西,誰知道一開始就遇到了一個棘手的問題:首先我想在頁面載入前通過ajax請求頁面展示所需要的資訊,於是我在created鉤子函式裡面請求了我想要的資料created:function(){ var url="/inde
【轉】Netty之解決TCP粘包拆包(自定義協議)
https://www.cnblogs.com/sidesky/p/6913109.html 1、什麼是粘包/拆包 一般所謂的TCP粘包是在一次接收資料不能完全地體現一個完整的訊息資料。TCP通訊為何存在粘包呢?主要原因是TCP是以流的方
安裝完oh my zsh後某些命令不能使用
問題: 為了改變一下終端預設比較醜的介面,最近裝了下oh My zsh這個神器,裝完使用一段時間後發現確實很強大,但今天突然所有的命令都不能用(node pm2 npm redis mysql 等等),最後找到解決辦法; 解決辦法 1, 修改 .bash_profile 2, 進入終端,輸入vim ~/
JS元件系列——BootstrapTable+KnockoutJS實現增刪改查解決方案(四):自定義T4模板快速生成頁面
前言:上篇介紹了下ko增刪改查的封裝,確實節省了大量的js程式碼。博主是一個喜歡偷懶的人,總覺得這些基礎的增刪改查效果能不能通過一個什麼工具直接生成頁面效果,啥程式碼都不用寫了,那該多爽。於是研究了下T4的語法,雖然沒有完全掌握,但是算是有了一個大致的瞭解,給需要自定義模板的園友們提供一個參考。於是乎有了今天
springMVC上傳檔案大小限制以及超過限制後的自定義處理
在xml中加下如下配置 <!-- SpringMVC上傳檔案時,需要配置MultipartResolver處理器 --> <beanid="multipartResolve
隨spring context初始化完成後init自定義bean
我們想在Spring的所有Bean初始化完畢之後執行一些Bean的init操作 如果我們基於Spring開發Application,那麼我們可能的做法就是,在呼叫Spring初始化完畢之後接著去寫我們的程式碼來初始化 如果我們基於Spring開發Web,那麼我們很
Netty之解決TCP粘包拆包(自定義協議)
1、什麼是粘包/拆包 一般所謂的TCP粘包是在一次接收資料不能完全地體現一個完整的訊息資料。TCP通訊為何存在粘包呢?主要原因是TCP是以流的方式來處理資料,再加上網路上MTU的往往小於在應用處理的訊息資料,所以就會引發一次接收的資料無法滿足訊息的需要,導
更改後angularjs自定義星級評分
自定義控制器directive程式碼如下: app.directive('hgStarBox', function () { return { restrict:'ECAM', template: '<div class=
解決Everything1.4版本預覽時不支持自定義後綴的問題
cnblogs 點擊 原因 con 目錄 不知道 window image arch 2017年6月Everything版本升級到了1.4.x 個人使用下來認為最主要的有以下幾點 添加預覽功能 搜索結果多選 點擊目錄列即打開文件所在目錄,點擊其他列則打開該文件
織夢新增超過兩百個自定義欄位後在使用addfields呼叫自定義欄位出錯的解決方法
dedecsm 自定義模型 新增自定義欄位(個數一百多個),使用addfields 方法呼叫,出現呼叫不出來的情況【addfields 裡面就能新增145個欄位,多了直接亂碼或者無法顯示】 解決方法 分別開啟 include/dedehtml2.class.
在springboot打包成jar後,無法讀取自定義檔案的解決辦法
前兩天在做springcloud框架下的專案的時候,用到有一個框架之外的檔案需要進行讀取,當時在eclipse中編碼時通過this.getClass().getResource來獲取檔案的路徑,沒有任何的問題,但是在打成jar以後,這是是打成jar包不是war,結果發現不能正常的讀取我放在工程裡
WPF自定義控制元件中使用了RadioButton後,多次使用該控制元件出現的死迴圈解決方法
最近在專案中需要用到RadioButton,所以在自定義控制元件中使用了一組RadioButton,使用一個預設的groupname,也就是這個goupname給後來的問題埋下了地雷。 定義大致如下: <Grid> <Label Height ="50" W
解決vmbox配置設定好自定義網橋後無法ping通問題
啟動一個docker容器後,在虛擬機器和宿主機上pingdocker容器的ip地址發現無法ping通 原因:通過ping發出的資料包由於沒有找到對應的應用而被丟棄,也沒被轉發 解決方法: 關閉虛擬機器 在vmbox點選設定--網路--網路1--高階--混雜模式設定穩全部
Android TextInputLayout setError 後影響 EditText 設定的自定義背景問題的 1 種解決方案
如圖所見的紅色背景問題,困擾了一整天,差點要放棄了,改用別的方案,終於在今日喜見雲開。。。 因為在TextInputLayout setError方法原始碼中有 // Set the EditText's background tint
自定義android studio的配置檔案目錄後,無法正常安裝和解除安裝外掛的解決辦法。
Android Studio 的快取檔案預設安裝的在C:\Users\YourName\ .xxx 快取一些資料,有限的C盤空間很容易捉禁見肘。所以就需要修改配置檔案了,修改配置檔案的方法百度一下數量數不勝數,我這裡就不寫了。修改路徑後有一個奇葩問題:無法正常安裝和解除安裝外
ios7自定義返回按鈕後,右滑返回功能失效解決方法
http://blog.sina.com.cn/s/blog_9592635a0101fuk9.html -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; //開啟i