Compare commits
4
Commits
ffd6289a0f
...
fd29875044
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd29875044
|
||
|
|
f8891e01bc
|
||
|
|
209f9120fd
|
||
|
|
81e2ed075e
|
No files matched your search
@@ -15,7 +15,6 @@ alias sort='sort -n'
|
||||
alias scrcpy='scrcpy --disable-screensaver'
|
||||
alias ssh='kitten ssh'
|
||||
alias sudo='doas'
|
||||
alias sudoedit='doas rvim'
|
||||
#alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1'
|
||||
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1'
|
||||
alias trc='trash-empty'
|
||||
|
||||
@@ -19,7 +19,7 @@ if [ ! -d ~/.cache/mutt ]; then
|
||||
fi
|
||||
|
||||
export EDITOR=vim
|
||||
export SUDO_EDITOR=rvim
|
||||
export SUDO_EDITOR=vim
|
||||
|
||||
export PATH="/home/fuxino/.local/bin:$PATH"
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# clang options for aurb chroot builds (CC/CXX pass --config=<this file>, see aurutils-makepkg.conf).
|
||||
# Here rather than in LDFLAGS: old libtool (<2.4.7) drops -fuse-ld=lld, and these then reach GNU ld.
|
||||
-fuse-ld=lld
|
||||
-Wl,--thinlto-cache-dir=/home/fuxino/.cache/thinlto
|
||||
-Wl,--thinlto-cache-policy=cache_size_bytes=10g
|
||||
@@ -166,4 +166,14 @@ SRCEXT='.src.tar.gz'
|
||||
#-- Command used to run pacman as root, instead of trying sudo and su
|
||||
#PACMAN_AUTH=()
|
||||
export CCACHE_DIR=/home/fuxino/.cache/ccache
|
||||
|
||||
# clang + lld + ThinLTO, only when aurb prepends AURB_CLANG=1 (its default; `aurb --gcc` doesn't).
|
||||
# update-kernel uses this file as is, so the kernels stay on gcc. Linker flags live in clang.cfg
|
||||
# (lld + ThinLTO cache); aurb bind-mounts its dir and the ThinLTO cache dir.
|
||||
if [[ -n ${AURB_CLANG-} ]]; then
|
||||
export CC="clang --config=/home/fuxino/.config/aurb/clang.cfg"
|
||||
export CXX="clang++ --config=/home/fuxino/.config/aurb/clang.cfg"
|
||||
export AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib
|
||||
LTOFLAGS="-flto=thin"
|
||||
fi
|
||||
# vim: set ft=sh ts=2 sw=2 et:
|
||||
@@ -206,7 +206,7 @@
|
||||
enable_recursive_icon_lookup = true
|
||||
|
||||
# Set icon theme (only used for recursive icon lookup)
|
||||
icon_theme = Everforest-Dark
|
||||
icon_theme = Tokyonight-Dark
|
||||
# You can also set multiple icon themes, with the leftmost one being used first.
|
||||
# icon_theme = "Adwaita, breeze"
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@ ExecStart=/usr/bin/beet lastimport
|
||||
Type=simple
|
||||
Restart=no
|
||||
StandardOutput=null
|
||||
StandardError=journal
|
||||
+24
-6
@@ -1,15 +1,33 @@
|
||||
#!/bin/bash
|
||||
# aurb / aurs: aur build / aur sync with ccache mounted in the chroot (use with -c)
|
||||
# aurb / aurs: aur build / aur sync with ccache and the ThinLTO cache mounted in the chroot (use with -c).
|
||||
# Builds with clang by default (see aurutils-makepkg.conf); --gcc builds with gcc instead.
|
||||
case "$(basename "$0")" in
|
||||
aurb) cmd=build ;;
|
||||
aurs) cmd=sync ;;
|
||||
*) echo "Invoke as aurb or aurs" >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
CCACHE_HOST_DIR="$HOME/.cache/ccache"
|
||||
mkdir -p "$CCACHE_HOST_DIR"
|
||||
baseconf="$HOME/.config/aurutils-makepkg.conf"
|
||||
args=()
|
||||
clang=1
|
||||
for arg in "$@"; do
|
||||
if [[ $arg == --gcc ]]; then clang=0; else args+=("$arg"); fi
|
||||
done
|
||||
|
||||
exec aur "$cmd" \
|
||||
--makepkg-conf "$HOME/.config/aurutils-makepkg.conf" \
|
||||
conf=$baseconf
|
||||
if ((clang)); then
|
||||
conf=$(mktemp "${XDG_RUNTIME_DIR:-/tmp}/aurb-clang.XXXXXX.conf") || exit 1
|
||||
trap 'rm -f "$conf"' EXIT
|
||||
{ echo 'AURB_CLANG=1'; cat "$baseconf"; } > "$conf"
|
||||
fi
|
||||
|
||||
CCACHE_HOST_DIR="$HOME/.cache/ccache"
|
||||
THINLTO_HOST_DIR="$HOME/.cache/thinlto"
|
||||
mkdir -p "$CCACHE_HOST_DIR" "$THINLTO_HOST_DIR"
|
||||
|
||||
aur "$cmd" \
|
||||
--makepkg-conf "$conf" \
|
||||
--bind-rw "$CCACHE_HOST_DIR" \
|
||||
"$@"
|
||||
--bind-rw "$THINLTO_HOST_DIR" \
|
||||
--bind "$HOME/.config/aurb" \
|
||||
"${args[@]}"
|
||||
@@ -33,10 +33,12 @@ Plug 'ghifarit53/tokyonight-vim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
let g:ale_linters={'python': ['pylint'], 'c': ['cc'], 'sh': ['shell'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
||||
let g:ale_linters = {'python': ['ruff', 'mypy'], 'c': ['cc'], 'sh': ['shellcheck'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
|
||||
let g:ale_linters_explicit = 1
|
||||
let g:ale_enabled = 1
|
||||
let g:ale_python_pylint_options='--max-line-length=160 --disable=missing-docstring --disable=invalid-name'
|
||||
|
||||
" sudoedit's copies in /var/tmp aren't executable
|
||||
let g:ale_pattern_options = {'^/var/tmp/': {'ale_python_ruff_options': '--extend-ignore EXE001'}}
|
||||
|
||||
let g:ale_fixers = {
|
||||
\ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'],
|
||||
|
||||
Reference in new issue
Block a user