GithubHelp home page GithubHelp logo

sskras / .files Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mirrors-git/templet-02-added-the-blue-oak-model-license

0.0 0.0 0.0 82 KB

Personal attempt at automating setup of a new home dir / managing dot-files in a cross-platform way.

License: Other

Shell 53.82% Makefile 45.15% Vim Script 1.03%

.files's People

Contributors

sskras avatar

.files's Issues

Move `GOPATH` (at least `GOBIN`) under an XDG dir or so

Things like 2fa are installed by Go into ~/go/bin. That's pretty ugly.

Found a proposal. @nhooyr commented on Jul 23, 2018:

I agree, lets change this proposal to make the default $GOPATH $XDG_DATA_HOME/go because $XDG_DATA_HOME is for user specific essential data. It'll be safer like you said.

So I would probably go like that. Sadly the proposal got rejected.
The alternative for me could be:

GOPATH => ~/.local/go

Check for missing `make`

$ curl -L inx.lv/mi3u | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   538    0   538    0     0   5267      0 --:--:-- --:--:-- --:--:--  5274
100   478  100   478    0     0   2106      0 --:--:-- --:--:-- --:--:--  2106
sh: 12: make: not found

PATH customizations from .bashrc get duplicated in new Bash sessions

If I log in via SSH, the PATH gets some defaults + my additions from .profile and .bashrc:

sskras@vps1128235:~$ echo "${PATH//:/$'\n'}"
/home/sskras/.local/bin
/home/sskras/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
/home/sskras/pkg/bin
/home/sskras/pkg/sbin

But if I launch new interactive session from the old one, my customizations get duplicated:

sskras@vps1128235:~$ bash -l
Executing /home/sskras/.profile
Executing /home/sskras/.bashrc
Executing /home/sskras/.bash_aliases
Executing /home/sskras/.bash_functions

sskras@vps1128235:~$ echo "${PATH//:/$'\n'}"
/home/sskras/.local/bin
/home/sskras/bin
/home/sskras/.local/bin
/home/sskras/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
/home/sskras/pkg/bin
/home/sskras/pkg/sbin
/home/sskras/pkg/bin
/home/sskras/pkg/sbin

(Eg. the starting and the ending dirs)

If would be nice to keep PATH customizations but avoid repeating the added dirs on every new interactive session.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.