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
shrc: Add new function root
pull/1/head
10sr
10 years ago
parent
baae9593db
commit
7bfe3af653
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
shrc
+ 9
- 0
shrc
View File
@@ -433,6 +433,15 @@ cd(){
builtin cd "$@" && pwd
}
root(){
if test "`git rev-parse --is-inside-work-tree 2>/dev/null`" = true
then
cd "`git rev-parse --show-toplevel`"
else
cd /
fi
}
# pad
alias pad=notepad
__safe_alias pad=gedit
Write
Preview
Loading…
Cancel
Save