From e1950146c7d1471974c1787c371329a25f98d93e Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 2 Apr 2020 11:07:00 +0800 Subject: update --- Makefile | 6 +++++- alias | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6bac2da..977c397 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .PHONY: * all: git vim tig + mkdir -p ~/git git: rm -f ~/.gitconfig @@ -22,11 +23,14 @@ vim: tig: rm -f ~/.tigrc ln -s `pwd`/tigrc ~/.tigrc + if [ ! -d "$(HOME)/git/tig" ]; then \ + git clone --depth=100 https://github.com/typebrook/tig ~/git/tig; \ + fi wiki: # vimwiki if [ ! -d "$(HOME)/.vimwiki" ]; then \ - git clone --depth=1 https://github.com/typebrook/wiki.git ~/vimwiki + git clone https://github.com/typebrook/wiki.git ~/vimwiki; \ fi crontab: diff --git a/alias b/alias index ffe6870..4c8ec5a 100644 --- a/alias +++ b/alias @@ -36,6 +36,7 @@ alias gtt='gist tags' alias gd='gist detail' # shell +alias path="echo $PATH" alias fd="ls -l /proc/$$/fd" alias src="source $HOME/.$(basename $SHELL)rc" alias ll='ls -alh' @@ -57,6 +58,7 @@ prompt() { # package alias ai='sudo apt install' # apt install alias aptu='sudo apt update && sudo apt upgrade' +alias pac='sudo pacman -Sy' # pacman install alias si='sudo snap install' # snap install alias pi='sudo pip3 install' # python install alias ni='sudo npm install -g' # nodejs install -- cgit v1.2.3-70-g09d2