-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: support OMB_DEFAULT_ALIASES to control the alias overriding
- Loading branch information
1 parent
ce1c03f
commit cc1d1a9
Showing
6 changed files
with
55 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#! bash oh-my-bash.module | ||
# Common directories functions | ||
alias cd..='cd ../' # Go back 1 directory level (for fast typers) | ||
alias ..='cd ../' # Go back 1 directory level | ||
alias ...='cd ../../' # Go back 2 directory levels | ||
alias .3='cd ../../../' # Go back 3 directory levels | ||
alias .4='cd ../../../../' # Go back 4 directory levels | ||
alias .5='cd ../../../../../' # Go back 5 directory levels | ||
alias .6='cd ../../../../../../' # Go back 6 directory levels | ||
_omb_util_alias cd..='cd ../' # Go back 1 directory level (for fast typers) | ||
_omb_util_alias ..='cd ../' # Go back 1 directory level | ||
_omb_util_alias ...='cd ../../' # Go back 2 directory levels | ||
_omb_util_alias .3='cd ../../../' # Go back 3 directory levels | ||
_omb_util_alias .4='cd ../../../../' # Go back 4 directory levels | ||
_omb_util_alias .5='cd ../../../../../' # Go back 5 directory levels | ||
_omb_util_alias .6='cd ../../../../../../' # Go back 6 directory levels | ||
|
||
alias -- -='cd -' | ||
alias 1='cd -' | ||
alias 2='cd -2' | ||
alias 3='cd -3' | ||
alias 4='cd -4' | ||
alias 5='cd -5' | ||
alias 6='cd -6' | ||
alias 7='cd -7' | ||
alias 8='cd -8' | ||
alias 9='cd -9' | ||
_omb_util_alias -- -='cd -' | ||
_omb_util_alias 1='cd -' | ||
_omb_util_alias 2='cd -2' | ||
_omb_util_alias 3='cd -3' | ||
_omb_util_alias 4='cd -4' | ||
_omb_util_alias 5='cd -5' | ||
_omb_util_alias 6='cd -6' | ||
_omb_util_alias 7='cd -7' | ||
_omb_util_alias 8='cd -8' | ||
_omb_util_alias 9='cd -9' | ||
|
||
alias md='mkdir -p' | ||
alias rd='rmdir' | ||
alias d='dirs -v | head -10' | ||
_omb_util_alias md='mkdir -p' | ||
_omb_util_alias rd='rmdir' | ||
_omb_util_alias d='dirs -v | head -10' | ||
|
||
# List directory contents | ||
alias lsa='ls -lah' | ||
alias l='ls -lah' | ||
alias ll='ls -lh' | ||
alias la='ls -lAh' | ||
_omb_util_alias lsa='ls -lah' | ||
_omb_util_alias l='ls -lah' | ||
_omb_util_alias ll='ls -lh' | ||
_omb_util_alias la='ls -lAh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters