From c4e320ecb26825c09bd52583dfa5ee2d165d4280 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 28 Jul 2023 11:50:33 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=BA=9B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + home/.bashrc | 23 +++++++++++------------ home/.gitconfig | 27 +++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 home/.gitconfig diff --git a/README.md b/README.md index 893f2a8..5bf2cc4 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ sudo apt install xsettingsd plank alacritty qt5-style-kvantum qt5ct thunar file- - `dunst` 一个轻量的系统通知程序。 - `timeshift` 系统备份和快照的神器 - `webp-pixbuf-loader` 一个可以让你的文件管理器预览webp图片的库。 +- `exa` rust版`ls`, 有高亮, 更直观。 ## 配套 diff --git a/home/.bashrc b/home/.bashrc index 1265bd7..8dd95df 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -13,21 +13,22 @@ shopt -s histappend HISTSIZE=20000 HISTFILESIZE=20000 -export HISTTIMEFORMAT="[%F %T] " +export HISTTIMEFORMAT="[%F %T] " # update the values of LINES and COLUMNS. shopt -s checkwinsize - 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 if [ -x /usr/bin/dircolors ]; then 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 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' # 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 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 fi fi + +#. "/home/yutent/.flutter-completion" diff --git a/home/.gitconfig b/home/.gitconfig new file mode 100644 index 0000000..4a8f519 --- /dev/null +++ b/home/.gitconfig @@ -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