22iatest=$( expr index " $- " i)
33
44# ######################################################
5- # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
5+ # SOURCED ALIASES AND SCRIPTS BY zachbrowne.me
66# ######################################################
77if [ -f /usr/bin/fastfetch ]; then
88 fastfetch
@@ -93,22 +93,22 @@ export LESS_TERMCAP_ue=$'\E[0m'
9393export LESS_TERMCAP_us=$' \E[01;32m'
9494
9595# ######################################################
96- # MACHINE SPECIFIC ALIAS'S
96+ # MACHINE SPECIFIC ALIASES
9797# ######################################################
9898
99- # Alias's for SSH
99+ # aliases for SSH
100100# alias SERVERNAME='ssh YOURWEBSITE.com -l USERNAME -p PORTNUMBERHERE'
101101
102- # Alias's to change the directory
102+ # aliases to change the directory
103103alias web=' cd /var/www/html'
104104
105- # Alias's to mount ISO files
105+ # aliases to mount ISO files
106106# mount -o loop /home/NAMEOFISO.iso /home/ISOMOUNTDIR/
107107# umount /home/NAMEOFISO.iso
108108# (Both commands done as root only.)
109109
110110# ######################################################
111- # GENERAL ALIAS'S
111+ # GENERAL ALIASES
112112# ######################################################
113113# To temporarily bypass an alias, we precede the command with a \
114114# EG: the ls command is aliased, but to use the normal ls command you would type \ls
@@ -126,7 +126,7 @@ alias hlp='less ~/.bashrc_help'
126126# alias to show the date
127127alias da=' date "+%Y-%m-%d %A %T %Z"'
128128
129- # Alias's to modified commands
129+ # aliases to modified commands
130130alias cp=' cp -i'
131131alias mv=' mv -i'
132132alias rm=' trash -v'
@@ -157,7 +157,7 @@ alias bd='cd "$OLDPWD"'
157157# Remove a directory and all files
158158alias rmd=' /bin/rm --recursive --force --verbose '
159159
160- # Alias's for multiple directory listing commands
160+ # aliases for multiple directory listing commands
161161alias la=' ls -Alh' # show hidden files
162162alias ls=' ls -aFh --color=always' # add colors and file type extensions
163163alias lx=' ls -lXBh' # sort by extension
@@ -203,19 +203,19 @@ alias checkcommand="type -t"
203203# Show open ports
204204alias openports=' netstat -nape --inet'
205205
206- # Alias's for safe and forced reboots
206+ # aliases for safe and forced reboots
207207alias rebootsafe=' sudo shutdown -r now'
208208alias rebootforce=' sudo shutdown -r -n now'
209209
210- # Alias's to show disk space and space used in a folder
210+ # aliases to show disk space and space used in a folder
211211alias diskspace=" du -S | sort -n -r |more"
212212alias folders=' du -h --max-depth=1'
213213alias folderssort=' find . -maxdepth 1 -type d -print0 | xargs -0 du -sk | sort -rn'
214214alias tree=' tree -CAhF --dirsfirst'
215215alias treed=' tree -CAFd'
216216alias mountedinfo=' df -hT'
217217
218- # Alias's for archives
218+ # aliases for archives
219219alias mktar=' tar -cvf'
220220alias mkbz2=' tar -cvjf'
221221alias mkgz=' tar -cvzf'
0 commit comments