This commit is contained in:
array-in-a-matrix 2023-09-20 11:33:31 -04:00
parent 99bda42aa2
commit 085f04ae72
4 changed files with 6 additions and 27 deletions

View file

@ -21,6 +21,9 @@ set smartindent
set showtabline=2
set noshowmode
" prevent search highlighting from staying after search
nnoremap <CR> :noh<CR><CR>
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'vim-airline/vim-airline'

View file

@ -4,7 +4,7 @@ alias ls="lsd"
alias cat="bat"
alias find="fd -H"
alias rm="trash"
alias grep="rg -e"
alias grep="rg"
alias mktmp="cd $(mktemp -d)"
alias uptime="uptime --pretty"
@ -18,7 +18,7 @@ alias radeontop="radeontop -c"
alias tty-clock="tty-clock -scBxbn"
# 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 micon="pactl load-module module-loopback latency_msec=1"
alias auth="eval $(ssh-agent) ssh-add $HOME/.ssh/ubuntu@vector"

View file

@ -17,6 +17,7 @@ export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
export PNPM_HOME="/home/linux/.local/share/pnpm"
export VSCODE_PORTABLE="$XDG_DATA_HOME/vscode"
export GOPATH="$XDG_DATA_HOME/go"
export GOMODCACHE="$XDG_CACHE_HOME"/go/mod
export BUN_INSTALL="$XDG_DATA_HOME/bun"
export PROJECTS="$HOME/Documents/Projects"
@ -25,7 +26,6 @@ export PROJECTS="$HOME/Documents/Projects"
# Folders added to $PATH:
export PATH="$PROJECTS/bin:$PATH"
export PATH="$HOME/home/linux/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$PNPM_HOME:$PATH"
export PATH="$GOPATH/bin:$PATH"

View file

@ -12,27 +12,3 @@ lfcd() {
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
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;}