5 ms·
Why not? Because it changes the meaning of '.': ~$ echo date > d.sh ~$ d.sh -bash: d.sh: command not found ~$ . d.sh 06:37:21 EDT 2013 ~$ alias .='
by ekke 13y ago
Why not? Because it changes the meaning of '.':
~$ echo date > d.sh
~$ d.sh
-bash: d.sh: command not found
~$ . d.sh
06:37:21 EDT 2013
~$ alias .='cd ../'
~$ . d.sh
/home$ Is not works!
But another alias with no previous meaning would do well - i use 'up' :)
- dan2k3k4 13y agoI use ".." to go up one, and ".. 3" to go up 3. Source: http://alias.sh/cd-number-dirs http://alias.sh/cd-number-dirs