File tree 4 files changed +19
-4
lines changed
4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ with sshfs.
22
22
$ cd nfs:machine:/woot # mounts NFS directories
23
23
$ cd enc:/path/to/encrypted # mounts an encfs directory
24
24
$ cd loop:image.iso # mounts a loopback image
25
+ $ cd au:/usr:/var # AUFS union mount
25
26
26
- Fuse-mounted directories are unmounted automatically when you ` cd ` out of them.
27
+ Fuse and root-mounted directories are unmounted automatically when you ` cd ` out
28
+ of them.
27
29
28
30
` cd ` also supports symlinks to virtual directories. For example:
29
31
Original file line number Diff line number Diff line change @@ -384,8 +384,8 @@ cd_push_history "$PWD"
384
384
385
385
# process any args we have for this script
386
386
if [[ $CD_EXTENSIONS = ' all' ]]; then
387
- for extension in ssh archive dev loop encfs git nfs history missing-mkdir \
388
- hdfs http postgresqlfs traverse; do
387
+ for extension in ssh aufs archive dev loop encfs git nfs history \
388
+ missing-mkdir hdfs http postgresqlfs traverse; do
389
389
. $cd_path /cd-$extension
390
390
done
391
391
else
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # AUFS mounts | Spencer Tipping
3
+ # Licensed under the terms of the MIT source code license
4
+
5
+ cd_on ' (^|-)u:' cd_aufs_mount cd_aufs_umount
6
+
7
+ function cd_aufs_mount {
8
+ cd_mount " cd_as_root mount -t aufs -o br:${1# u: } " " $1 "
9
+ }
10
+
11
+ function cd_aufs_umount {
12
+ cd_umount " cd_as_root umount" " $@ "
13
+ }
Original file line number Diff line number Diff line change 2
2
# Single-user loopback mounting | Spencer Tipping
3
3
# Licensed under the terms of the MIT source code license
4
4
5
- cd_on ' ^ loop:' cd_loop_mount cd_loop_umount
5
+ cd_on ' (^|-) loop:' cd_loop_mount cd_loop_umount
6
6
7
7
function cd_loop_mount {
8
8
target=" ${1# loop: } "
You can’t perform that action at this time.
0 commit comments