This website works better with JavaScript.
Home
Explore
Help
Sign In
10sr
/
dotfiles-mirror
mirror of
https://github.com/10sr/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
cd use pushd
pull/1/head
10sr
12 years ago
parent
75f33dc0d5
commit
d027d082cd
1 changed files
with
14 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
bashrc
+ 14
- 0
bashrc
View File
@@ -202,6 +202,20 @@ then
|| complete -o default -o nospace -F _git g
fi
cd(){
if test $# -eq 0
then
pushd ~/
elif test $1 = -
then
local pwd="$PWD"
popd
pushd -n "$pwd" # stack last dir
else
pushd "$@"
fi
}
input(){
local foo
stty -echo
Write
Preview
Loading…
Cancel
Save