update
This commit is contained in:
parent
99bda42aa2
commit
085f04ae72
|
@ -21,6 +21,9 @@ set smartindent
|
||||||
set showtabline=2
|
set showtabline=2
|
||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
||||||
|
" prevent search highlighting from staying after search
|
||||||
|
nnoremap <CR> :noh<CR><CR>
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
|
|
|
@ -4,7 +4,7 @@ alias ls="lsd"
|
||||||
alias cat="bat"
|
alias cat="bat"
|
||||||
alias find="fd -H"
|
alias find="fd -H"
|
||||||
alias rm="trash"
|
alias rm="trash"
|
||||||
alias grep="rg -e"
|
alias grep="rg"
|
||||||
alias mktmp="cd $(mktemp -d)"
|
alias mktmp="cd $(mktemp -d)"
|
||||||
alias uptime="uptime --pretty"
|
alias uptime="uptime --pretty"
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ alias radeontop="radeontop -c"
|
||||||
alias tty-clock="tty-clock -scBxbn"
|
alias tty-clock="tty-clock -scBxbn"
|
||||||
|
|
||||||
# long aliases
|
# long aliases
|
||||||
alias upgrade="sudo aura -Syu; sudo aura -Akuaxc"
|
alias upgrade="sudo aura -Syu; sudo aura -Akuaxc; flatpak update"
|
||||||
alias micoff="pactl unload-module module-loopback"
|
alias micoff="pactl unload-module module-loopback"
|
||||||
alias micon="pactl load-module module-loopback latency_msec=1"
|
alias micon="pactl load-module module-loopback latency_msec=1"
|
||||||
alias auth="eval $(ssh-agent) ssh-add $HOME/.ssh/ubuntu@vector"
|
alias auth="eval $(ssh-agent) ssh-add $HOME/.ssh/ubuntu@vector"
|
||||||
|
|
|
@ -17,6 +17,7 @@ export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
export PNPM_HOME="/home/linux/.local/share/pnpm"
|
export PNPM_HOME="/home/linux/.local/share/pnpm"
|
||||||
export VSCODE_PORTABLE="$XDG_DATA_HOME/vscode"
|
export VSCODE_PORTABLE="$XDG_DATA_HOME/vscode"
|
||||||
export GOPATH="$XDG_DATA_HOME/go"
|
export GOPATH="$XDG_DATA_HOME/go"
|
||||||
|
export GOMODCACHE="$XDG_CACHE_HOME"/go/mod
|
||||||
export BUN_INSTALL="$XDG_DATA_HOME/bun"
|
export BUN_INSTALL="$XDG_DATA_HOME/bun"
|
||||||
export PROJECTS="$HOME/Documents/Projects"
|
export PROJECTS="$HOME/Documents/Projects"
|
||||||
|
|
||||||
|
@ -25,7 +26,6 @@ export PROJECTS="$HOME/Documents/Projects"
|
||||||
|
|
||||||
# Folders added to $PATH:
|
# Folders added to $PATH:
|
||||||
export PATH="$PROJECTS/bin:$PATH"
|
export PATH="$PROJECTS/bin:$PATH"
|
||||||
export PATH="$HOME/home/linux/.local/bin:$PATH"
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
export PATH="$PNPM_HOME:$PATH"
|
export PATH="$PNPM_HOME:$PATH"
|
||||||
export PATH="$GOPATH/bin:$PATH"
|
export PATH="$GOPATH/bin:$PATH"
|
||||||
|
|
|
@ -12,27 +12,3 @@ lfcd() {
|
||||||
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extract() {
|
|
||||||
if [ -f $1 ]; then
|
|
||||||
case $1 in
|
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
|
||||||
*.tar.gz) tar xzf $1 ;;
|
|
||||||
*.bz2) bunzip2 $1 ;;
|
|
||||||
*.rar) unrar x $1 ;;
|
|
||||||
*.gz) gunzip $1 ;;
|
|
||||||
*.tar) tar xf $1 ;;
|
|
||||||
*.tbz2) tar xjf $1 ;;
|
|
||||||
*,tgz) tar xzf $1 ;;
|
|
||||||
*.zip) unzip $1 ;;
|
|
||||||
*.z) uncompress $1 ;;
|
|
||||||
*.7z) 7z x $1 ;;
|
|
||||||
*) echo "'$1' cannot be extracted." ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo "'$1' is mot a valid file."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
share(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null;fi;}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue