mirror of https://github.com/Phantop/dotfiles
General cleanup 9001
This commit is contained in:
parent
bed8b745b4
commit
d561366659
89
bashrc
89
bashrc
|
@ -1,89 +0,0 @@
|
|||
eval "$(starship init bash)"
|
||||
source /usr/share/autojump/autojump.bash
|
||||
source /usr/share/defaults/etc/profile
|
||||
|
||||
# Sensible Bash: https://github.com/mrzool/bash-sensible
|
||||
|
||||
## GENERAL OPTIONS ##
|
||||
|
||||
# Prevent file overwrite on stdout redirection
|
||||
# Use `>|` to force redirection to an existing file
|
||||
set -o noclobber
|
||||
|
||||
# Update window size after every command
|
||||
shopt -s checkwinsize
|
||||
|
||||
# Automatically trim long paths in the prompt (requires Bash 4.x)
|
||||
PROMPT_DIRTRIM=2
|
||||
|
||||
# Enable history expansion with space
|
||||
# E.g. typing !!<space> will replace the !! with your last command
|
||||
bind Space:magic-space
|
||||
|
||||
# Turn on recursive globbing (enables ** to recurse all directories)
|
||||
shopt -s globstar 2> /dev/null
|
||||
|
||||
# Case-insensitive globbing (used in pathname expansion)
|
||||
shopt -s nocaseglob;
|
||||
|
||||
## SMARTER TAB-COMPLETION (Readline bindings) ##
|
||||
|
||||
# Perform file completion in a case insensitive fashion
|
||||
bind "set completion-ignore-case on"
|
||||
|
||||
# Treat hyphens and underscores as equivalent
|
||||
bind "set completion-map-case on"
|
||||
|
||||
# Display matches for ambiguous patterns at first tab press
|
||||
bind "set show-all-if-ambiguous on"
|
||||
|
||||
# Immediately add a trailing slash when autocompleting symlinks to directories
|
||||
bind "set mark-symlinked-directories on"
|
||||
|
||||
## SANE HISTORY DEFAULTS ##
|
||||
|
||||
# Append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# Save multi-line commands as one command
|
||||
shopt -s cmdhist
|
||||
|
||||
# Huge history. Doesn't appear to slow things down, so why not?
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
|
||||
# Avoid duplicate entries
|
||||
HISTCONTROL="erasedups:ignoreboth"
|
||||
|
||||
# Don't record some commands
|
||||
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
|
||||
|
||||
# Use standard ISO 8601 timestamp
|
||||
# %F equivalent to %Y-%m-%d
|
||||
# %T equivalent to %H:%M:%S (24-hours format)
|
||||
HISTTIMEFORMAT='%F %T '
|
||||
# Version: 0.2.2
|
||||
|
||||
# Enable incremental history search with up/down arrows (also Readline goodness)
|
||||
# Learn more about this here: http://codeinthehole.com/writing/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/
|
||||
bind '"\e[A": history-search-backward'
|
||||
bind '"\e[B": history-search-forward'
|
||||
bind '"\e[C": forward-char'
|
||||
bind '"\e[D": backward-char'
|
||||
|
||||
## BETTER DIRECTORY NAVIGATION ##
|
||||
|
||||
# Prepend cd to directory names automatically
|
||||
shopt -s autocd 2> /dev/null
|
||||
# Correct spelling errors during tab-completion
|
||||
shopt -s dirspell 2> /dev/null
|
||||
# Correct spelling errors in arguments supplied to cd
|
||||
shopt -s cdspell 2> /dev/null
|
||||
|
||||
# This allows you to bookmark your favorite places across the file system
|
||||
# Define a variable containing a path and you will be able to cd into it regardless of the directory you're in
|
||||
shopt -s cdable_vars
|
||||
|
||||
#aliases
|
||||
eval alias $(fish -c alias | cut -d' ' -f2- | sed 's/ /=/' | sed 's/(/$(/g' | sed 's/argv/@/g')
|
||||
alias cd=cd
|
|
@ -16,7 +16,7 @@ a base64d 'echo (echo $argv | base64 -d 2>/dev/null) | tee /dev/stderr 2>| clip;
|
|||
a catbox 'curl https://catbox.moe/user/api.php -F reqtype=fileupload -F fileToUpload=@$argv;:'
|
||||
a clip 'xclip -sel clip'
|
||||
a cpugov 's cpupower frequency-set -g performance'
|
||||
a dirdl 'wget -r -k -p --no-parent --no-clobber -e robots=off -R "index.html*"'
|
||||
a dirdl 'wget -r -k -p -np -nc e robots=off'
|
||||
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16'
|
||||
a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t'
|
||||
a dot 'cd ~/.dotfiles'
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../../.appdwarf/appdwarf
|
|
@ -13,5 +13,5 @@ sudo solbuild delete-cache
|
|||
sudo rm -rf /var/lib/solbuild
|
||||
sudo solbuild init -p unstable-x86_64
|
||||
sudo journalctl --vacuum-size=1K
|
||||
bleachbit -c $(bleachbit -l|rg -v 'system.free_disk_space|transmission|system.memory|cookies')
|
||||
bleachbit -c $(bleachbit -l|rg -v 'system.free_disk_space|system.memory')
|
||||
sudo bleachbit -c $(bleachbit -l|rg -v 'system.free_disk_space|system.memory')
|
||||
|
|
|
@ -7,7 +7,7 @@ se rm $gnome firefox libreoffice-common onboard thunderbird
|
|||
|
||||
dev="arcanist ccache git-extras llvm-clang neovim parallel qt-creator solbuild"
|
||||
gui="caja gimp keepassxc kitty nicotine-plus qutebrowser syncthing zathura-mupdf"
|
||||
med="audaci{ty,ous{,-plugins}} avidemux mkvtoolnix mpv opus-tools spek yt-dlp"
|
||||
med="audacity audacious avidemux mkvtoolnix mpv opus-tools spek yt-dlp"
|
||||
ric="ant-dracula-gtk-theme autojump font-ubuntu-ttf rofi starship sassc stow"
|
||||
tui="advancecomp aria2 fd fish fzf innoextract jpegoptim moreutils ncdu ripgrep tig"
|
||||
sys="bleachbit corectrl ifuse linux-tools-cpupower p7zip tlp usbmuxd upx tor"
|
||||
|
@ -16,12 +16,13 @@ se up; se it -c system.devel $dev $gui $med $ric $sys $tui
|
|||
stow --no-folding -d ~/.dotfiles -t ~/.config .
|
||||
stow --no-folding -d ~/.dotfiles -t ~/.local/bin bin
|
||||
mkdir -p ~/.parallel/will-cite
|
||||
echo source ~/.config/bashrc > ~/.bashrc
|
||||
echo source ~/.config/fish/bashrc > ~/.bashrc
|
||||
ln -s ~/.config/gtk-3.0/gtkrc ~/.gtkrc-2.0
|
||||
|
||||
wget https://github.com/dracula/kitty/raw/master/dracula.conf -P ~/.config/kitty
|
||||
wget https://github.com/dracula/rofi/raw/master/theme/config2.rasi -P ~/.config/rofi
|
||||
wget https://github.com/savq/paq-nvim/raw/master/lua/paq.lua -P ~/.config/nvim/lua
|
||||
wget https://github.com/mrzool/bash-sensible/raw/master/sensible.bash -P ~/.local/bin
|
||||
wget https://source.netsurf-browser.org/netsurf.git/plain/resources/adblock.css\
|
||||
https://nitter.it/css/themes/dracula.css -P ~/.config/qutebrowser
|
||||
un(){ F=$(mktemp); mkdir -p "$2"; curl https://api.github.com/repos/"$1"/releases |\
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
data=$(curl -l "$1" | grep /d/)
|
||||
base=$(echo "$1" | sed s/v/d/ | cut -d/ -f1-5)
|
||||
num=$(echo "$data" | awk -F'[()]' '{print $4}'| bc)
|
||||
name=$(echo "$data" | cut -d/ -f5)
|
||||
aria2c "$base/$num/$name"
|
|
@ -0,0 +1,10 @@
|
|||
source /usr/share/autojump/autojump.bash
|
||||
source /usr/share/defaults/etc/profile
|
||||
|
||||
# Sensible Bash: https://github.com/mrzool/bash-sensible
|
||||
source $(which sensible.bash)
|
||||
|
||||
#aliases
|
||||
eval alias $(fish -c alias | cut -d' ' -f2- | sed 's/ /=/' | sed 's/(/$(/g' | sed 's/argv/@/g')
|
||||
|
||||
eval "$(starship init bash)"
|
Loading…
Reference in New Issue