Go up any number of directories.
Project description
UP! - the fast way to go up directories in xonsh
Tired of attaching "balloons" to your cd
command to go up directories?
cd ..
, cd ../..
, cd ../../..
, cd ../../../..
, cd ../../../../../../../../../../../../../..
?
Tired of creating weird aliases like cd..4
, cd..12
, ... cd..100
to navigate up directories?
Now you can use up
!
Type up
to go up one directory. Type up 2
to go up two directories. Type
up 42
to go up forty-two directories. It's that easy.
No more defining an alias for cd ../../../../../../..
. Just type up 7
.
$ # cd ../../..
$ up 3
You can also get the path that up
will produce by using upp
(up path).
This lets you see what directory up will produce.
$ # pushd -q .; cd ../../../..; echo $PWD; popd -q
$ upp 4
Listing ancestor directories with ls
requires balloons, but not anymore.
A simple way to list ancestor dirs is with lsup
, which forwards on any options to ls
.
$ # long list everything 3 dirs up (ie: `ls -opts ../../..`)
$ lsup -laFGh 3
Commands
Command | Description |
---|---|
up |
Travel up any number of directories |
upp |
Get the path of an ancestor directory |
lsup |
List the contents of an ancestor directory |
Install
Install from PyPI via xpip
:
xpip install xontrib-up
# or: xpip install -U git+https://github.com/mattmc3/xontrib-up
Then, add this to your ~/.config/xonsh/rc.xsh
or ~/.xonshrc
:
xontrib load up
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for xontrib_up-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d82f24aa4db276e684ccdad142c02b2fa53619692e3411c4e104dc8d7dfedc |
|
MD5 | f60e6c228fc8ff47f81481c317f156e6 |
|
BLAKE2b-256 | 72b9700c0cdca82d8559844000e666586381d0082a12aafbe155196b6a539963 |