更新一些配置
parent
182132dda7
commit
c4e320ecb2
|
@ -43,6 +43,7 @@ sudo apt install xsettingsd plank alacritty qt5-style-kvantum qt5ct thunar file-
|
||||||
- `dunst` 一个轻量的系统通知程序。
|
- `dunst` 一个轻量的系统通知程序。
|
||||||
- `timeshift` 系统备份和快照的神器
|
- `timeshift` 系统备份和快照的神器
|
||||||
- `webp-pixbuf-loader` 一个可以让你的文件管理器预览webp图片的库。
|
- `webp-pixbuf-loader` 一个可以让你的文件管理器预览webp图片的库。
|
||||||
|
- `exa` rust版`ls`, 有高亮, 更直观。
|
||||||
|
|
||||||
|
|
||||||
## 配套
|
## 配套
|
||||||
|
|
23
home/.bashrc
23
home/.bashrc
|
@ -13,21 +13,22 @@ shopt -s histappend
|
||||||
HISTSIZE=20000
|
HISTSIZE=20000
|
||||||
HISTFILESIZE=20000
|
HISTFILESIZE=20000
|
||||||
|
|
||||||
export HISTTIMEFORMAT="[%F %T] "
|
|
||||||
|
|
||||||
|
export HISTTIMEFORMAT="[%F %T] "
|
||||||
|
|
||||||
|
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
|
||||||
PS1='\[\e[1;31m\]\[\e[32m\]\[\e[33m\]\[\e[m\]\[\e[34m\] \w\[\e[m\]\[\e[31m\]$(__git_ps1)\[\e[m\] '
|
PS1='\[\e[1;31m\]\[\e[32m\]\[\e[33m\]\[\e[m\]\[\e[34m\] \w\[\e[m\]\[\e[31m\]$(__git_ps1)\[\e[m\] '
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
# enable color support of ls and also add handy aliases
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
alias ls='ls --color=auto'
|
#alias ls='ls --color=auto'
|
||||||
|
alias ls='exa --color=auto'
|
||||||
#alias dir='dir --color=auto'
|
#alias dir='dir --color=auto'
|
||||||
#alias vdir='vdir --color=auto'
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
|
@ -40,20 +41,16 @@ fi
|
||||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
alias ll='ls -lh --time-style=+%Y.%m.%d_%H:%M'
|
#alias ll='ls -lh --time-style=+%Y.%m.%d_%H:%M'
|
||||||
|
# 用rust版的exa替代ls
|
||||||
|
alias ll='exa -l --time-style long-iso'
|
||||||
alias la='ll -a'
|
alias la='ll -a'
|
||||||
alias l='ll'
|
alias l='ll'
|
||||||
|
|
||||||
|
|
||||||
export HTTP_PROXY="http://127.0.0.1:7890"
|
|
||||||
export HTTPS_PROXY="http://127.0.0.1:7890"
|
|
||||||
export ALL_PROXY="socks5://127.0.0.1:7890"
|
|
||||||
export http_proxy="http://127.0.0.1:7890"
|
|
||||||
export https_proxy="http://127.0.0.1:7890"
|
|
||||||
export all_proxy="socks5://127.0.0.1:7890"
|
|
||||||
|
|
||||||
export no_proxy="intel-nuc.local,localhost,127.0.0.1,::1"
|
|
||||||
|
|
||||||
|
alias copy='xclip -selection clipboard'
|
||||||
|
#alias echo='printf'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,3 +61,5 @@ if ! shopt -oq posix; then
|
||||||
. /etc/bash_completion
|
. /etc/bash_completion
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#. "/home/yutent/.flutter-completion"
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
[user]
|
||||||
|
name = yutent
|
||||||
|
email = yutent.io@gmail.com
|
||||||
|
[alias]
|
||||||
|
co = checkout
|
||||||
|
br = branch
|
||||||
|
ci = commit -m
|
||||||
|
st = status
|
||||||
|
last = log -1 HEAD
|
||||||
|
[credential]
|
||||||
|
helper = store
|
||||||
|
[core]
|
||||||
|
excludesfile = ~/.gitignore_global
|
||||||
|
[pull]
|
||||||
|
ff = only
|
||||||
|
[init]
|
||||||
|
defaultBranch = master
|
||||||
|
[https]
|
||||||
|
proxy = http://127.0.0.1:7890
|
||||||
|
[http]
|
||||||
|
proxy = http://127.0.0.1:7890
|
||||||
|
sslVerify = false
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
Loading…
Reference in New Issue