File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ _ret_same() { return $?; }
86
86
for script in /etc/bashrc.d/* ; do . " $script " ; done
87
87
88
88
# The prompt depends on vcs_status! Get one backup anyway.
89
- declare -f _vcs_status > /dev/null || ! echo _vcs_status not declared, making stub.. || alias _vcs_status=_ret_same
89
+ type _vcs_status & > /dev/null || ! echo _vcs_status not declared, making stub.. || alias _vcs_status=_ret_same
90
90
91
91
# To be shipped together. See comments in bashrc_repo on _ret and _ret_status().
92
92
102
102
103
103
104
104
# Extra Aliases for those lazy ones :)
105
- alias ..=' cd ..'
106
105
alias ...=' cd ../..'
107
106
alias ....=' cd ../../..'
108
107
alias nano=' nano -w'
109
108
alias ed=' ed -p: -v' # ED for Eununchs hackers.
110
- _is_posix || which (){ (alias; declare -F ) | /usr/bin/ which -i --read-functions " $@ " ; }
109
+ _is_posix || which --version | grep GNU & > /dev/null && alias which= ' (alias; declare -f ) | which -i --read-functions'
111
110
112
111
# Misc stuffs
113
112
FIGNORE=' ~'
You can’t perform that action at this time.
0 commit comments