Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
25b1cd68
Commit
25b1cd68
authored
Jan 10, 2014
by
LFDM
Committed by
Marc Cornellà
Feb 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Brings all directory stuff to directories.zsh
- Cleans out aliases.zsh. - Removes unneeded cd function.
parent
13e5afe8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
36 deletions
+15
-36
aliases.zsh
lib/aliases.zsh
+0
-13
directories.zsh
lib/directories.zsh
+15
-23
No files found.
lib/aliases.zsh
View file @
25b1cd68
# Push and pop directories on directory stack
alias
pu
=
'pushd'
alias
po
=
'popd'
# Basic directory operations
alias
...
=
'cd ../..'
alias
--
-
=
'cd -'
# Super user
alias
_
=
'sudo'
alias
please
=
'sudo'
...
...
@@ -25,11 +17,6 @@ then
else
alias history
=
'fc -l 1'
fi
# List direcory contents
alias
lsa
=
'ls -lah'
alias
l
=
'ls -lah'
alias
ll
=
'ls -lh'
alias
la
=
'ls -lAh'
alias
afind
=
'ack-grep -il'
lib/directories.zsh
View file @
25b1cd68
...
...
@@ -3,12 +3,10 @@ setopt auto_pushd
setopt pushd_ignore_dups
setopt pushdminus
alias
..
=
'cd ..'
alias
cd..
=
'cd ..'
alias
cd...
=
'cd ../..'
alias
cd....
=
'cd ../../..'
alias
cd.....
=
'cd ../../../..'
alias cd
/
=
'cd /'
alias
-g
...
=
'../..'
alias
-g
....
=
'../../..'
alias
-g
.....
=
'../../../..'
alias
-g
......
=
'../../../../..'
alias
1
=
'cd -'
alias
2
=
'cd -2'
...
...
@@ -20,23 +18,17 @@ alias 7='cd -7'
alias
8
=
'cd -8'
alias
9
=
'cd -9'
cd
()
{
if
[[
"x
$*
"
==
"x..."
]]
;
then
cd
../..
elif
[[
"x
$*
"
==
"x...."
]]
;
then
cd
../../..
elif
[[
"x
$*
"
==
"x....."
]]
;
then
cd
../../../..
elif
[[
"x
$*
"
==
"x......"
]]
;
then
cd
../../../../..
elif
[
-d
~/.autoenv
]
;
then
source
~/.autoenv/activate.sh
autoenv_cd
"
$@
"
else
builtin cd
"
$@
"
fi
}
alias
md
=
'mkdir -p'
alias
rd
=
rmdir
alias
d
=
'dirs -v | head -10'
# List direcory contents
alias
lsa
=
'ls -lah'
alias
l
=
'ls -la'
alias
ll
=
'ls -l'
alias
la
=
'ls -lA'
alias
sl
=
ls
# often screw this up
# Push and pop directories on directory stack
alias
pu
=
'pushd'
alias
po
=
'popd'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment