rahiel / pwds Goto Github PK
View Code? Open in Web Editor NEWPrint the path of the current working directory, shortly.
Home Page: https://www.rahielkasim.com/pwds/
License: Apache License 2.0
Print the path of the current working directory, shortly.
Home Page: https://www.rahielkasim.com/pwds/
License: Apache License 2.0
How to reproduce:
mkdir ~/Directory
cd ~/Directory
rm -r ~/Directory
RUST_BACKTRACE=1 pwds
Backtrace:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', src/libcore/result.rs:906:4
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::_print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::begin_panic
6: std::panicking::begin_panic_fmt
7: rust_begin_unwind
8: core::panicking::panic_fmt
9: core::result::unwrap_failed
10: pwds::main
11: __rust_maybe_catch_panic
12: std::rt::lang_start
13: __libc_start_main
14: _start
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
It would be nice if you could set the number of characters you want to print of each subdirectory, so instead of ~/C/r/s/d/nomicon
you could print 2 characters: ~/Co/ru/sr/do/nomicon
maybe it could be set with:
export PWDS_CHARS=2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.