manjaro安裝完後的配置
更改國內源
sudo pacman-mirrors -GB testing -c China
增加Arch linuxcn源
在/etc/pacman.conf
檔案末尾新增兩行:
[archlinuxcn] Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
更新系統
sudo pacman -Syu
安裝archlinuxcn-keyring
:
sudo pacman -S archlinuxcn-keyring sudo pacman -Syu
安裝chrome
sudo pacman -S google-chrome
安裝Firefox
sudo pacman -S firefox firefox-i18n-zh-cn
安裝pycharm
社群版
sudo pacman -S pycharm
安裝搜狗拼音
sudo pacman -S fcitx-im#預設全部安裝 sudo pacman -S fcitx-configtool sudo pacman -S fcitx-sogoupinyin
新建~/.xprofile
檔案,加入如下內容
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx"
安裝和使用oh-my-zsh
安裝
oh-my-zsh
的配置
檢視本地有哪幾種shell
cat /etc/shells
manjaro
預設已經安裝了zsh
切換到zsh,輸入密碼,連續回車確認
chsh -s /bin/zsh
在manjaro的gnome桌面中如果需要預設啟動終端的時候就是zsh需要在終端中進行配置 - 開啟終端,編輯>>>>首選項>>>>命令 - 勾選**“執行自定義命令而不是shell”** 選項 - 在下面的**“自定義命令**”中填寫zsh
安裝 oh-my-zsh的配置檔案
via curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 或者 via wget sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
替換zsh的配置檔案為oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
更改主題
vim ~/.zshrc
找到ZSH_THEME=
更改為
ZSH_THEME="agnoster"
安裝外掛
-
安裝
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
-
安裝
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
-
在
~/.zshrc
中找到
plugins=( git )
在括號中git的下一行新增外掛名稱使其生效
plugins=( git zsh-syntax-highlighting zsh-autosuggestions )
- 重新整理配置,使之生效
source ~/.zshrc