Fix some stuff

This commit is contained in:
Observer of Time 2019-09-02 04:42:42 +03:00
parent 5562c303ad
commit 320f5f7004
Signed by: chronobserver
GPG Key ID: 8A2DEA1DBAEBCA9E
9 changed files with 48 additions and 32 deletions

View File

@ -61,8 +61,12 @@ user-agent=curl/7.65.1
# Metalink Specific Options {{{ # Metalink Specific Options {{{
# A metalink file is not written to
# the disk, but is just kept in memory.
follow-metalink=mem
# The location of the preferred server. # The location of the preferred server.
metalink-location=gr,jp,us,fr metalink-location=gr,de,us,fr,jp
# Specify preferred protocol. # Specify preferred protocol.
metalink-preferred-protocol=https metalink-preferred-protocol=https

View File

@ -109,8 +109,8 @@ cht() { # Searches cht.sh cheatsheet
} }
weather() { # Show weather info from wttr.in weather() { # Show weather info from wttr.in
__usage $# 1 '<place>' && return 1 __usage $# 1 '<place> [country]' && return 1
curl -sS4 "wttr.in/~${1}+${2:-Greece}" | head -n -1 curl -sS4 "wttr.in/~${1}+${2:-Greece}" | head -n -2
} }
sri() { # Prints the SRI hash of a resource sri() { # Prints the SRI hash of a resource

View File

@ -26,13 +26,13 @@ export PIPENV_VENV_IN_PROJECT=1
# Set the default command used by fzf # Set the default command used by fzf
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore' export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore'
# Set the default pager to vimpager # Set the default pager
export PAGER=vimpager export PAGER='nvimpager -p'
# Set the default editor to neovim # Set the default editor
export EDITOR=nvim export EDITOR=nvim
# Set the default browser to firefox # Set the default browser
export BROWSER=firefox export BROWSER=firefox
# Set the paths used by go {{{ # Set the paths used by go {{{
@ -52,13 +52,24 @@ export PERL_CPANM_HOME="$HOME/.local/perl/.cpanm"
# }}} # }}}
# Set the paths used by the android sdk {{{ # Set the paths used by the android sdk {{{
export ANDROID_EMULATOR_HOME="$HOME/.local/android/emulator" export ANDROID_HOME="$HOME/.local/android"
export ANDROID_AVD_HOME="$HOME/.local/android/avd"
export ANDROID_SDK_ROOT="$HOME/.local/android/sdk"
# }}} # }}}
# Set the search path for commands # Set the search path for commands {{{
export PATH="$HOME/.local/bin:$PATH:$GOPATH/bin:$GEM_HOME/bin:$HOME/.yarn/bin" export PATH="$HOME/.local/bin:\
/usr/sbin:/usr/local/bin:/usr/bin:\
/usr/lib/jvm/default/bin:\
/usr/bin/site_perl:\
/usr/bin/vendor_perl:\
/usr/bin/core_perl:\
$HOME/.local/perl/bin:\
$GOPATH/bin:\
$GEM_HOME/bin:\
$HOME/.yarn/bin:\
$HOME/.poetry/bin:\
$ANDROID_HOME/tools:\
$ANDROID_HOME/platform-tools:"
# }}}
# Use a 256color terminal if one exists {{{ # Use a 256color terminal if one exists {{{
for t in {konsole,xterm,gnome}-256color; do for t in {konsole,xterm,gnome}-256color; do
@ -71,4 +82,3 @@ done
test -f ~/.bashrc && source ~/.bashrc test -f ~/.bashrc && source ~/.bashrc
# vim:set fdm=marker fdl=1: # vim:set fdm=marker fdl=1:

View File

@ -41,6 +41,9 @@ save-position-on-quit=yes
# Video format/quality that is directly passed to youtube-dl. # Video format/quality that is directly passed to youtube-dl.
ytdl-format=bestvideo[height<=?1080]+bestaudio/best ytdl-format=bestvideo[height<=?1080]+bestaudio/best
# Options that are directly passed to youtube-dl.
ytdl-raw-options="yes-playlist="
# }}} # }}}
# Screenshot {{{ # Screenshot {{{

View File

@ -32,5 +32,5 @@ pre = true
# Specify type of progress to be displayed. # Specify type of progress to be displayed.
progress-bar = pretty progress-bar = pretty
# vim:cfg=dosini: # vim:ft=dosini:

View File

@ -20,10 +20,6 @@
"svgo": "^1.2.2", "svgo": "^1.2.2",
"tern": "^0.23.0", "tern": "^0.23.0",
"ts-node": "^8.1.0", "ts-node": "^8.1.0",
"typescript": "^3.4.5", "typescript": "^3.4.5"
"webtorrent-cli": "BlackLight/webtorrent-cli"
},
"resolutions": {
"flatten": "npm:array-flatten"
} }
} }

View File

@ -20,7 +20,6 @@
--output "%(title)s.%(ext)s" --output "%(title)s.%(ext)s"
# Specify a custom user agent. # Specify a custom user agent.
--user-agent "Mozilla/5.0 (X11; Linux x86_64) youtube-dl/2019.07.02" --user-agent "Mozilla/5.0 (X11; Linux x86_64) youtube-dl/2019.08.13"
# vim:ft=conf: # vim:ft=conf:

View File

@ -77,11 +77,11 @@
lab = !git clone git@gitlab.com:"$1" "${@:2}" "#" lab = !git clone git@gitlab.com:"$1" "${@:2}" "#"
aur = !git clone aur@aur.archlinux.org:"$1" "${@:2}" "#" aur = !git clone aur@aur.archlinux.org:"$1" "${@:2}" "#"
repush = !git commit --amend -a --no-edit && git push --force repush = !git commit --amend -a --no-edit && git push --force
fork-sync = "!( \ fork-sync = "\
git fetch --verbose upstream && git checkout --progress master && \ git fetch --verbose upstream && git checkout --progress master && \
git reset --hard upstream/master && git push --verbose --force )" git reset --hard upstream/master && git push --verbose --force"
force-pull = "!git fetch -a && git reset --hard ${2:-origin}/${1:-master}" force-pull = "!git fetch -a && git reset --hard ${2:-origin}/${1:-master}"
create-lab = "!( \ create-lab = "!f() { \
if [ -z \"$GITLAB_TOKEN\" ]; then \ if [ -z \"$GITLAB_TOKEN\" ]; then \
if [ -f \"$HOME/.local/tokens/gitlab\" ]; then \ if [ -f \"$HOME/.local/tokens/gitlab\" ]; then \
GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/gitlab\" )\"; \ GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/gitlab\" )\"; \
@ -94,8 +94,8 @@
curl -H \"Content-Type: application/json\" \ curl -H \"Content-Type: application/json\" \
-H \"Private-Token: $GITLAB_TOKEN\" \ -H \"Private-Token: $GITLAB_TOKEN\" \
-sSX POST https://gitlab.com/api/v4/projects \ -sSX POST https://gitlab.com/api/v4/projects \
-d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; printf '\n' )" -d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; printf '\n';}; f"
rename = "!( \ rename = "!f() { \
if [ -z \"$GITHUB_TOKEN\" ]; then \ if [ -z \"$GITHUB_TOKEN\" ]; then \
if [ -f \"$HOME/.local/tokens/github\" ]; then \ if [ -f \"$HOME/.local/tokens/github\" ]; then \
GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/github\" )\"; \ GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/github\" )\"; \
@ -111,7 +111,7 @@
-H \"Authorization: Token $GITHUB_TOKEN\" \ -H \"Authorization: Token $GITHUB_TOKEN\" \
-sSX PATCH \"https://api.github.com/repos/$user/${2:-$root}\" \ -sSX PATCH \"https://api.github.com/repos/$user/${2:-$root}\" \
-d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; \ -d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; \
git remote set-url \"${3:-origin}\" \"https://github.com/$user/$1\" )" git remote set-url \"${3:-origin}\" \"https://github.com/$user/$1\";}; f"
[url "git@github.com:"] [url "git@github.com:"]
insteadOf = https://github.com/ insteadOf = https://github.com/
@ -132,5 +132,10 @@
insteadOf = http://bitbucket.org/ insteadOf = http://bitbucket.org/
insteadOf = @bb: insteadOf = @bb:
# vim:set noet sw=4 ts=4: [filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# vim:set noet sw=4 ts=4:

View File

@ -37,7 +37,6 @@ glances
go go
goldendict goldendict
gradle gradle
handbrake
htop htop
httpie httpie
hub hub
@ -50,7 +49,6 @@ jq
kcolorchooser kcolorchooser
kde-servicemenu-rootactions kde-servicemenu-rootactions
kdegraphics-thumbnailers kdegraphics-thumbnailers
kdenlive
kio-extras kio-extras
kio-gdrive kio-gdrive
kipi-plugins kipi-plugins
@ -83,6 +81,7 @@ otf-fantasque-sans-mono
otf-fira-code otf-fira-code
p7zip p7zip
pacman-contrib pacman-contrib
perl-test-perltidy
ppsspp ppsspp
pygmentize pygmentize
python-isort python-isort
@ -93,6 +92,7 @@ python-py-cpuinfo
python-sphinx python-sphinx
python2-pip python2-pip
qbittorrent qbittorrent
qemu
qutebrowser qutebrowser
r r
rclone rclone
@ -102,7 +102,6 @@ ruby
ruby-jekyll ruby-jekyll
ruby-travis ruby-travis
screenfetch screenfetch
scribus
sddm-kcm sddm-kcm
shfmt shfmt
smplayer smplayer
@ -116,7 +115,7 @@ valgrind
vifm vifm
vim vim
vint vint
virtualbox virt-manager
vulkan-intel vulkan-intel
wget wget
whois whois