Comments (3)
I like the idea of having a single file that includes the rest of the files in the repo. But what if the user doesn't want to include all the files? I guess we could just tell them they can comment out those lines.
If we wanted to make this super complicated, we could create an installation script. 😆 We could instruct people to run it upon cloning the repo and it could ask the user which files to include. Upon the user making these choices, it could edit the file that includes the rest of the files in the repo. Then, it could append a line to .bashrc
to include that file. The script could determine the path to its directory using dirname "$(readlink -f "$0")"
.
There are a couple things we could do from there. Either we force the installation script to delete itself, or we leave the script there so that the user can run it whenever they want to change what's getting included. Then, we could have the script check whether .bashrc
has been appropriately edited each time it's run.
from myaliases.
The general strat is currently to write things to an external file and include that in the .bashrc, that way if anything explodes, it can be largely self-contained.
from myaliases.
Seems to be resolved! I'll migrate various improvements to other issues. Also we should probably keep an eye on it. It relies on ~/.bash_aliases
being included in the ~/.bashrc
. (Although if this is an erroneous assumption we can very easily change the line where it references ~/.bash_aliases
to reference the ~/.bashrc
directly.)
from myaliases.
Related Issues (20)
- options HOT 6
- Reran install script and .included gave me this HOT 2
- cds - too many file descriptors? HOT 3
- wiki better m8 HOT 1
- cds tab complete shell conditional agh HOT 2
- add guidance about setup/install to wiki
- document git and hg and grep
- prepending .included line into .bash_aliases HOT 7
- comments in cds command
- unalias for altalias? HOT 1
- double slashes in cds tab completion HOT 3
- alias in alias command
- test suite HOT 3
- Setup script's jank on an RPI HOT 6
- Setup script should finish off by sourcing HOT 1
- Somehow enforce make
- some ideas
- cds - is not portable
- wsl open cmd overrides default open cmd HOT 2
- WSL 2 alternative to SFTP Net Drive using SSHFS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myaliases.