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 {{{
# A metalink file is not written to
# the disk, but is just kept in memory.
follow-metalink=mem
# The location of the preferred server.
metalink-location=gr,jp,us,fr
metalink-location=gr,de,us,fr,jp
# Specify preferred protocol.
metalink-preferred-protocol=https

View File

@ -109,8 +109,8 @@ cht() { # Searches cht.sh cheatsheet
}
weather() { # Show weather info from wttr.in
__usage $# 1 '<place>' && return 1
curl -sS4 "wttr.in/~${1}+${2:-Greece}" | head -n -1
__usage $# 1 '<place> [country]' && return 1
curl -sS4 "wttr.in/~${1}+${2:-Greece}" | head -n -2
}
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
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore'
# Set the default pager to vimpager
export PAGER=vimpager
# Set the default pager
export PAGER='nvimpager -p'
# Set the default editor to neovim
# Set the default editor
export EDITOR=nvim
# Set the default browser to firefox
# Set the default browser
export BROWSER=firefox
# 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 {{{
export ANDROID_EMULATOR_HOME="$HOME/.local/android/emulator"
export ANDROID_AVD_HOME="$HOME/.local/android/avd"
export ANDROID_SDK_ROOT="$HOME/.local/android/sdk"
export ANDROID_HOME="$HOME/.local/android"
# }}}
# Set the search path for commands
export PATH="$HOME/.local/bin:$PATH:$GOPATH/bin:$GEM_HOME/bin:$HOME/.yarn/bin"
# Set the search path for commands {{{
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 {{{
for t in {konsole,xterm,gnome}-256color; do
@ -71,4 +82,3 @@ done
test -f ~/.bashrc && source ~/.bashrc
# 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.
ytdl-format=bestvideo[height<=?1080]+bestaudio/best
# Options that are directly passed to youtube-dl.
ytdl-raw-options="yes-playlist="
# }}}
# Screenshot {{{

View File

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

View File

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

View File

@ -20,7 +20,6 @@
--output "%(title)s.%(ext)s"
# 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:

View File

@ -77,11 +77,11 @@
lab = !git clone git@gitlab.com:"$1" "${@:2}" "#"
aur = !git clone aur@aur.archlinux.org:"$1" "${@:2}" "#"
repush = !git commit --amend -a --no-edit && git push --force
fork-sync = "!( \
fork-sync = "\
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}"
create-lab = "!( \
create-lab = "!f() { \
if [ -z \"$GITLAB_TOKEN\" ]; then \
if [ -f \"$HOME/.local/tokens/gitlab\" ]; then \
GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/gitlab\" )\"; \
@ -94,8 +94,8 @@
curl -H \"Content-Type: application/json\" \
-H \"Private-Token: $GITLAB_TOKEN\" \
-sSX POST https://gitlab.com/api/v4/projects \
-d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; printf '\n' )"
rename = "!( \
-d \"{\\\"name\\\": \\\"${1:?}\\\"}\"; printf '\n';}; f"
rename = "!f() { \
if [ -z \"$GITHUB_TOKEN\" ]; then \
if [ -f \"$HOME/.local/tokens/github\" ]; then \
GITHUB_TOKEN=\"$(< \"$HOME/.local/tokens/github\" )\"; \
@ -111,7 +111,7 @@
-H \"Authorization: Token $GITHUB_TOKEN\" \
-sSX PATCH \"https://api.github.com/repos/$user/${2:-$root}\" \
-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:"]
insteadOf = https://github.com/
@ -132,5 +132,10 @@
insteadOf = http://bitbucket.org/
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
goldendict
gradle
handbrake
htop
httpie
hub
@ -50,7 +49,6 @@ jq
kcolorchooser
kde-servicemenu-rootactions
kdegraphics-thumbnailers
kdenlive
kio-extras
kio-gdrive
kipi-plugins
@ -83,6 +81,7 @@ otf-fantasque-sans-mono
otf-fira-code
p7zip
pacman-contrib
perl-test-perltidy
ppsspp
pygmentize
python-isort
@ -93,6 +92,7 @@ python-py-cpuinfo
python-sphinx
python2-pip
qbittorrent
qemu
qutebrowser
r
rclone
@ -102,7 +102,6 @@ ruby
ruby-jekyll
ruby-travis
screenfetch
scribus
sddm-kcm
shfmt
smplayer
@ -116,7 +115,7 @@ valgrind
vifm
vim
vint
virtualbox
virt-manager
vulkan-intel
wget
whois