Commit Graph

15 Commits

Author SHA1 Message Date
hedy 539099a7de
Emacs(Vanilla): New config!
I've been working on this for more than a week. I've decided to finally
move away from doom and use my own config.

Both my doom and emacs configs are now using Literate Org configs.
2023-09-12 15:04:54 +08:00
hedy cd09b992f3
Shell(envs): Call $(tty) for setting GPG_TTY 2023-08-27 19:40:09 +08:00
hedy f909a2dc67
Add acme alias and fix pkgin 2023-08-15 21:08:42 +08:00
hedy 0e32df7952
Don't call $(tty) for GPG env-var, fix for non-terminal invokes 2023-07-04 19:22:21 +08:00
hedy c34b974204
Merge pull request #1 from nikolaxhristov/master
Fixes typo
2023-01-18 12:47:33 +08:00
hedy e252486b2b
Add kitty conf and pash install script 2023-01-17 16:45:34 +08:00
hedy eb25da64ce
Set TERM=xterm-256color
Everything seems to work. No idea why I set it to tmux back then.

less, vim, etc were all saying unknown terminal
2023-01-14 09:35:46 +08:00
Nikola Hristov 57336d988e
Fixes typo 2022-12-27 23:21:15 +02:00
hedy 33724ae421
Fish: Add env stuff for nvm 2022-03-31 17:50:59 +08:00
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 7e7985961a
add more env variables 2021-08-19 17:44:39 +08:00
Hedy Li afab0573a1
change TERM back to tmux-256color just to fix less(1) 2021-08-18 17:37:38 +08:00
Hedy Li d03eaa1dfd
me being stupid again forgot to update envs 2021-08-18 15:18:48 +08:00
Hedy Li be2b253dbc
set TERM to tmux-256color, modify weerc, add tmux pkg manager to setup 2021-08-18 13:16:49 +08:00
Hedy Li 0e37266a43
emacs packages, omf, fish config, wakatime, setup 2021-08-16 19:37:45 +08:00