更改國內(nèi)源
sudo pacman-mirrors -GB testing -c China
增加Arch linuxcn源
在/etc/pacman.conf文件末尾添加兩行:
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
更新系統(tǒng)
sudo pacman -Syu
安裝archlinuxcn-keyring:
sudo pacman -S archlinuxcn-keyring
sudo pacman -Syu
修改Home下的目錄為英文
修改目錄映射文件名;
vim ~/.config/user-dirs.dirs
修改為以下內(nèi)容:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Download"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
將Home目錄下的中文目錄名改為對應(yīng)的中文名;
cd ~
mv 公共 Public
mv 模板 Templates
mv 視頻 Videos
mv 圖片 Pictures
mv 文檔 Documents
mv 下載 Download
mv 音樂 Music
mv 桌面 Desktop
重啟系統(tǒng)。
安裝chrome
sudo pacman -S google-chrome
安裝Firefox
sudo pacman -S firefox firefox-i18n-zh-cn
安裝pycharm 社區(qū)版
sudo pacman -S pycharm
安裝搜狗拼音
sudo pacman -S fcitx-im #默認全部安裝
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-sogoupinyin
新建~/.xprofile文件,加入如下內(nèi)容
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 默認已經(jīng)安裝了 zsh
切換到zsh,輸入密碼,連續(xù)回車確認
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
)
在括號中g(shù)it的下一行添加插件名稱使其生效
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
- 刷新配置,使之生效
source ~/.zshrc