Commit Graph

164 Commits

Author SHA1 Message Date
Hedy Li b068d6aec8
envs: Add LD_LIBRARY_PATH and PKG_CONFIG_PATH
I use ~/local for compiling packages without root. It emulates
/usr/local, basically. So sometimes it might have .pc files etc in
corresponding pkgconfig/ in there or .so files in corresponding lib/.

I do this because I almost always don't have root, because I work on
tildes primarily (tilde.cafe to be specific) so yeah. If a package is
written in go or similar where building would be easy, the basic
workflow is this:

    cd ~/local/src
    git clone git@example.com:user/repo
    cd repo
    make PREFIX="$HOME/local" install

If all goes well the binary would be available at ~/local/bin.

For apt packages there is a higher chance of build failing and most of
them need other dependencies (plus some other historical reasons idk) so
I don't use ~/local/src[1], here's the general workflow:

    cd ~/Downloads
    apt source pkgname
    cd pkgname
    ls -A
    less INSTALL
    ./configure --prefix=~/local
    make PREFIX=~/local
    make install PREFIX=~/local

And most likely it would complain about some package not found in the
configure step, in which case I woukd repeat the steps for that package.

Eventually (if I hadn't given up yet), the binary would be sitting in
~/local/bin nicely.

Sometimes the package needs a lot of dependencies, in that case it may
take up a shit ton of disk space, so I would pack it in a .tar.gz so it
can be saved for future use.

For meson projects:

    cd ~/local/src
    git clone git@example.com:user/repo
    ls -A
    meson setup build
    meson compile -C build
    meson install -C build --destdir ~/local
    rsync ~/local/usr/local/ ~/local/ -avr
    rsync ~/local/usr/ ~/local/ -avr && rm -rf ~/local/usr

I don't use meson often so I'm unaware of a way to easily specify
PREFIX, if any.

So that's my life of getting stuff installed without root. Thanks for
coming to my ted talk. One day I'll probably copy this entire commit msg
and make it into a blog post.
2021-09-29 06:56:15 +00:00
Hedy Li 25a8ad7b7c
git: Tabs to spaces in .gitconfig
I've modified my vim settings to always use spaces (except go or
probably makefiles) since I've last touched my git config.
2021-09-29 06:56:10 +00:00
Hedy Li f2d9357ea3
git: Add 'pall' alias for pushall current branch
Same as pushall alias but omits the --all so only the current branch is
pushed. I sometimes find this useful when I have a development branch
that isn't ready yet and only want to push the primary branch to all
remotes.
2021-09-29 06:56:06 +00:00
Hedy Li 8f514dd679
Squashing commits to fix history ugh
nvim: Setup script install plug only if isn't installed

Part of my effort to make the scripts able to be run >once

--

README: Installation stuff and modify ToC

--

nvim: Add markdown ToC plugin

--

git: Config file tabs to spaces

--

aerc: Use ~/local/share/aerc and add setup script
2021-09-29 06:53:06 +00:00
Hedy Li dac2b6d154
shell: I finally gave in and aliased g to git
many many people do this. I didn't do it before because I haven't
bothered to, and I didn't think 3-chara git is THAT much... But today I
was working with yadm (aliased to y) and then immediately switched to
git and undoubtedly 3-chars and 1-char is a huge difference

In any case, I don't think there are much (if not, any at all) cli
scripts with 1 letter names. I can't remember but I'm pretty sure that's
against the 'poetry of cli naming' article :P
2021-09-29 06:45:36 +00:00
Hedy Li d4c94326c9
nvim: add vimagit and refactor plugin declarations 2021-09-29 06:45:35 +00:00
Hedy Li c8f43bd73f
tmux: set vi mode-keys 2021-09-29 06:45:34 +00:00
Hedy Li 7ea972ab73
fish: direnv hook 2021-09-20 11:40:58 +08:00
Hedy Li f649b7ae3f
nvim: fix conflicts 2021-09-20 11:40:25 +08:00
Hedy Li 0d8ac7c97a
nvim: add slope syntax plugin 2021-09-19 12:30:53 +00:00
Hedy Li ff56900516
fix typo in aerc 2021-09-09 07:17:18 +00:00
Hedy Li ba3c915bab
nvim: fix scdoc detect and add a new plugin 2021-09-07 18:09:02 +08:00
Hedy Li 0a334f60de
git: set default branch to main because why not 2021-09-07 17:54:09 +08:00
Hedy Li aa0034494c
nvim: add vim-toml 2021-08-30 13:29:32 +08:00
Hedy Li 46044bfc84
fix complete lua reference and remove endwise 2021-08-29 21:10:00 +08:00
Hedy Li fa252e187b
nvim: rename autocomplete.lua -> complete.lua because I have autopairs 2021-08-25 13:34:33 +08:00
Hedy Li 1d7831e137
nvim: remove vim.o.completeopt in autocomplete.lua 2021-08-25 13:32:03 +08:00
Hedy Li ba50cfffee
nvim: add completeopts 2021-08-24 11:49:10 +08:00
Hedy Li 9ebb8a9a9a
scripts: reformat dotscripts/setup/emacs 2021-08-24 11:48:36 +08:00
Hedy Li b4457d1983
reformat readme 2021-08-24 11:43:29 +08:00
Hedy Li 8e5075d798
Merge branch 'master' of git.sr.ht:~hedy/dotfiles 2021-08-23 08:47:06 +00:00
Hedy Li 6ff11c6ae2
bin/mvtmp: use --verbose for mv 2021-08-23 08:46:41 +00:00
Hedy Li e98fd72ee3
nvim: remove obsolete comment in general.vim 2021-08-23 13:17:39 +08:00
Hedy Li 485a417701
vim: switch auto-pairing plugin 2021-08-23 10:03:44 +08:00
Hedy Li f279cff8be
nvim: add some comments in autocomplete.lua and plugins.vim for <CR> 2021-08-22 17:54:40 +08:00
Hedy Li 72048a8197
nvim: add nvim-compe mappings for C-Space, CR, C-f, C-d 2021-08-22 17:39:19 +08:00
Hedy Li 7e01cc44a9
update readme todo 2021-08-22 17:38:05 +08:00
Hedy Li b44849d2b5
nvim: set shell=bash 2021-08-22 17:37:35 +08:00
Hedy Li ab2d8ea07d
improve fish startup speed by generating exportenvs.fish 2021-08-22 13:01:28 +08:00
Hedy Li 69cf2c98f8
Merge branch 'master' of git.sr.ht:~hedy/dotfiles 2021-08-21 17:55:28 +08:00
Hedy Li 1f7a0fcf5a
_scripts -> dotscripts; start writing bin/dot script 2021-08-21 17:55:12 +08:00
Hedy Li 0f05269487
new script: mvtmp 2021-08-20 20:39:58 +08:00
Hedy Li 969ab511a1
nvim: replace auto-pairs, fix backspace 2021-08-20 20:33:44 +08:00
Hedy Li f06e60a6ae
nvim: add plugin, fix a url, and add todo comment 2021-08-20 10:56:48 +08:00
Hedy Li cd39268dbb
vim/nvim: fix backspace newline issue 2021-08-20 10:56:20 +08:00
Hedy Li 345faf45c4
doom: refactor config comments 2021-08-19 19:45:30 +08:00
Hedy Li 460d93bb5f
Remove wakatime completely
wakatime made my nvim startup *extremely* slow, I used vim-profiler and
wakatime takes few thousand times slower than my other plugins, damn

planning to look from or make my own lightweight coding metrics
solution.
2021-08-19 19:43:18 +08:00
Hedy Li 37942e8ec7
nvim: reformat files 2021-08-19 17:45:25 +08:00
Hedy Li bbf11b1e2d
tmux: add some key binds and tmux-reset plugin 2021-08-19 17:45:07 +08:00
Hedy Li 7e7985961a
add more env variables 2021-08-19 17:44:39 +08:00
Hedy Li 5989d5b691
add Session.vim to global git ignore 2021-08-19 14:42:22 +08:00
Hedy Li a1ae50ba30
no idea why I had .profile tracked (oof) 2021-08-19 14:41:46 +08:00
Hedy Li e3f6cc9905
improve setup and install scripts 2021-08-19 14:40:33 +08:00
Hedy Li 9897e0d64b
update readme description 2021-08-19 14:35:41 +08:00
Hedy Li 004b992eed
nvim: remove coc-settings because it never works & I don't use it anymore 2021-08-19 13:03:34 +08:00
Hedy Li 3d20701074
nvim: fix sourcehut gemtext plugin url (sr.ht -> git.sr.ht) 2021-08-19 12:57:28 +08:00
Hedy Li a27a8c99f0
nvim: Add ftdetect, ftplugin, refactor everything
* expand tab by default
* add a lot of comments for future me
* improve autocomplete experience a bit
* revamp and fix some mappings
* better plugins and remove unused ones
* ftdetect scd
* Add diagnostics count of lightline

That's it I guess?
2021-08-19 12:53:55 +08:00
Hedy Li 6cc3ef5e3e
modify tmux status right 2021-08-19 11:22:54 +08:00
Hedy Li 431c51b577
use lua lsp if has 0.5, else use coc 2021-08-19 09:13:08 +08:00
Hedy Li 936bf8d713
add lua lsp files 2021-08-18 18:40:45 +08:00