#insert the following at the end of $HOME/.bashrc # Source the aliases, if a separate file exists #if [ -e $HOME/.alias ]; then # [ -n "$PS1" ] && . $HOME/.alias #fi #Aliases for improved directory listings #The --color=tty option shows items in different colors according to their type. #For example, directories are blue, executable files are green, symlinks are cyan, etc. #The -F option appends a symbol after entries to indicate their types. #You might not like both options at the same time. alias ls='ls -F --color=tty' #regular ls alias l.='ls -dF .[a-zA-Z0-9]* --color=tty' #only show dotfiles alias ll='ls -lhF --color=tty' #long listing alias dir='ls -ba' #Make these commands ask before clobbering a file. Use -f to override. alias rm="rm -i" alias cp="cp -i" alias mv="mv -i" #Use human-readable filesizes alias du="du -h" alias df="df -h" #Miscellaneous alias bzip2='bzip2 -v' alias j=jobs alias cd..="cd .." #work around a common typo #Automatically do an ls after each cd cd() { if [ -n "$1" ]; then builtin cd "$@" && ls else builtin cd ~ && ls fi } alias c='clear' alias e='espeak' alias kgp='killall gnome-panel' alias k='kill' alias kn='nemo -q' alias q='exit' alias movielist1='ls /media/davebrown/ONETOUCH/MOVIES > ~/Documents/Movie_List_1.txt' alias movielist2='ls /media/davebrown/GOFLEX/MOVIES > ~/Documents/Movie_List_2.txt' alias movielist='sort ~/Documents/Movie_List_1.txt ~/Documents/Movie_List_2.txt > ~/Documents/Movie_List.txt' alias series='ls /media/davebrown/EXPANSION/Movie\ Series > ~/Documents/Movie_Series.txt' alias synaptic='sudo synaptic' alias yt='youtube-dl ' alias mc='metacafe-dl -t' alias backup='sudo cp /etc/apt/sources.list ~/backup | cp ~/.alias ~/backup | cp ~/.bashrc ~/backup | cp -f ~/.conkyrc ~/backup' alias reload="killall -SIGUSR1 conky" alias updatefont="fc-cache -v -f" alias trash="mv -t ~/.local/share/Trash/files --backup=t" alias ss="gnome-screensaver-command -a" alias home="cd ~/" alias documents="cd ~/Documents/ | less" alias downloads="cd ~/Downloads/ | less" alias images="cd ~/Pictures/ | less" alias pictures="cd ~/Pictures/ | less" alias music="cd ~/Music/ | less" alias videos="cd ~/Videos/ | less" alias movies="cd ~/Videos/Movies | less" alias projects="cd ~/Projects | less" alias torrents="cd ~/Torrents | less" alias allmymovies="clear && cat ~/Documents/Movie_List.txt | less" alias galias='gedit ~/.alias' alias gconky='gedit ~/.conkyrc' alias gconky.top='gedit ~/.conkyrc.top' alias gconky.time='gedit ~/.conkyrc.time' alias gbash='gedit ~/.bashrc' alias moc='mocp -T ~/.moc/themes/transparent-arch' alias fb='frozen-bubble' alias cpconky='cp ~/.conkyrc ~/backup' alias cpconky.top='cp ~/.conkyrc.top ~/backup' alias cpconky.time='cp ~/.conkyrc.time ~/backup' alias cpbash='cp ~/.bashrc ~/backup' alias cpalias='cp ~/.alias ~/backup' alias v='alsamixer' alias grub='gksudo gedit /boot/grub/menu.lst' alias sources='gksudo gedit /etc/apt/sources.list' alias x='sudo xsplash' alias key='sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ' alias getkey="sudo ./bin/launchpad-update.sh" alias installinxi='sudo apt-get install gawk | cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi' alias installdeb='sudo dpkg -i *.deb' alias root='gksudo nemo /' alias maniadrive='cd ~/.ManiaDrive/ && ./mania_drive.sh' alias vid='cd ~/bin/ && ./video_with_cam.sh' alias pic='cd ~/bin/ && ./cam_picture.sh' alias trance='nohup vlc ~/Music/Armin\ van\ Buuren/tunein-station.pls > ~/.nohup.out' alias resetgnomepanel='gconftool-2 --recursive-unset /apps/panel && pkill gnome-panel' alias changeowner='sudo chown -R davebrown *' alias addppa='sudo add-apt-repository ' alias starwars='telnet towel.blinkenlights.nl' alias matrix='cmatrix -B -u 9' alias buttonsleft='gconftool-2 --set /apps/metacity/general/button_layout --type string close,minimize,maximize' alias reset='killall -9 gnome-settings-daemon && gnome-settings-daemon && nemo -q' alias photoshop='wine ~/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0/Photoshop.exe' alias es='electricsheep' alias editcrontab='env EDITOR=nano crontab -e' alias gtint2="gedit ~/.config/tint2/tint2rc" alias restarttint="killall tint2 && tint2 &" alias wingpanel='pkill wingpanel' alias mogrify='mogrify -format png *.*' alias clock="tty-clock -c -C 2 -f '%a %b %_e, %_I:%M %p'" alias cal3='cal -3 && cowsay 'It's almost Friday!' alias j4='j4-make-config' alias wifi='sudo wifi-menu' alias screenshot="clear && figlet -s screenshot && scrot -d 5 -c /home/davebrown/Screenshots/%Y-%m-%d-%T-screenshot.png" alias screenfetch="clear && figlet -s arch linux && screenfetch" alias set="feh --bg-fill ~/Pictures/login_background/bg.png" alias umount="sudo umount /media/*" alias cleanarch="pacman -Qdt && sudo pacman -Rsn $(pacman -Qqdt)" alias info='~/bin/info' alias xrdb="xrdb -merge .Xresources" alias today='date +"%A, %B %-d, %Y"' alias agi='sudo apt-get install' alias agr='sudo apt-get remove' alias agu='sudo apt-get update' alias aguu='sudo apt-get upgrade' alias agdu='sudo apt-get dist-upgrade' alias acs='apt-cache search' alias acsh='apt-cache show' alias sdi='sudo dpkg -i' alias agar='sudo apt-get autoremove' alias agc='sudo apt-get clean' alias av='apt version' alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean' alias fix='sudo dpkg --configure -a' alias fix2='apt install -f' alias wallpaper='feh --bg-fill ~/Pictures/login_background/bg.png' alias b='byobu' alias storm='mplayer ~/Music/Thunder_Storm.mp3' alias born='mplayer ~/Music/Born_To_Be_Wasted.mp3' alias colors="~/bin/colors" #alias scrot="scrot -d 5 -c '%m-%d-%Y_%I:%M:%S.png' -e 'mv $f ~/'" alias ggtkrc2='gedit ~/.gtkrc-2.0' alias shutdown='sudo shutdown -h now' alias reboot='sudo reboot' alias loginbackground='nemo ~/Pictures/Wallpaper | gksu nemo /usr/share/mdm/themes/Astronaut/' alias fetch='~/bin/screenfetch-dev' alias invaders='~/bin/./invaders.sh' alias restartshell='killall gnome-shell' alias background='nemo ~/Pictures/Wallpaper | gksu nemo /usr/share/backgrounds/' alias resetwifi='sudo service network-manager restart' alias cmi="./configure && make && sudo make install" alias debclean="sudo apt-get clean && sudo apt-get autoremove" alias createthumb='convert -sample 25%x25% ' alias createthumbs='~/bin/create_thumbs.sh' alias rotateimage='convert -rotate 90 ' #alias wifi='sudo modprobe -r iwlwifi && sudo modprobe iwlwifi bt_coex_active=0' #alias screenshot='gnome-screenshot --interactive' alias machinarium='~/.Machinarium/Machinarium' alias minecraft='java -cp ~/.minecraft/Minecraft.jar net.minecraft.bootstrap.Bootstrap' alias panel='gksu gedit /usr/share/themes/elementary/gtk-3.0/apps.css' alias planksettings='gedit ~/.config/plank/dock1/settings' # convert flv to avi with mencoder (rename flv to 'input.flv') alias convert='mencoder -oac mp3lame -ovc lavc -o output.avi input.flv' # install iso image onto a usb using dd (replace 'IMAGE.ISO' with correct name) alias dd="echo sudo dd if=IMAGE.ISO of=/dev/sdb" #alias update="sudo apt-get update && sudo apt-get upgrade" #PS1='\[\e[31m\]┌─[\[\e[37m\]\u@\t\[\e[31m\]] \n└─[\[\e[37m\]\W\[\e[31m\]]> ' #root user (red) #PS1='\[\e[32m\]┌─[\[\e[37m\]\u@\t\[\e[32m\]] \n└─[\[\e[37m\]\W\[\e[32m\]]> ' #regular user (green) #PS1="$(tput setaf 1)❯$(tput setaf 4)❯$(tput setaf 3)❯ $(tput sgr0)" #PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200> \[\033[0m\]" #PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200> \[\033[0m\]" #PS1='\e[0;36m┌──[\e[1;33m${PWD}\e[0;36m]──[\e[1;33m\t\e[0;36m]\n\e[0;36m└─> \$\e[1;37m' #PS1='[\e[01;32m]\u[\e[01;34m] @ \h [\e[01;36m]\w [\e[01;31m]\t\n[\e[01;36m]$ [\e[00m]' #colorfull #PS1='\[\e[1;30m\]» \[\e[0;33m\]\H@\u\[\e[1;30m\]╺─╸\[\e[1;30m\][\[\e[0m\]\W\[\e[1;30m\]]\[\e[1;34m\]\[\e[0m\]\[\e[m \] ' #Cathexis #PS1='\e[0;37m[\e[1;33m${PWD}\e[0;37m]$ ' #plain and simple #PS1='[\w]$ ' #PS1='\e[0;36m[\e[1;33m${PWD}\e[0;36m]─>\e[1;37m ' #PS1='\[[\033[01;32m\]\w\[\033[0;37m\]]\$ ' #colored directory #PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Green #PS1='\[[\033[01;34m\]\u@\h\[\033[00m\]]:\[\033[01;34m\]\w\[\033[0;37m\]\$ ' #Blue #PS1='\[[\033[01;30m\]\u@\h\[\033[00m\]]:\[\033[01;30m\]\w\[\033[0;37m\]\$ ' #Grey #For root add this to /root/.bashrc #PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Red #if [ "$color_prompt" = yes ]; then # PS1='\[\033[1;34m\]┌────[\u@\h\e[0;36m]──────────────────────────[\t\e[0;36m]────┐ \n└───>[${PWD}\e[0;36m] \$ \[\033[0;34m\]' #else # PS1='\e[0;36m┌────[\e[1;33m\u@\h\e[0;36m]────────────────────────────────────[\e[1;33m\t\e[0;36m]────┐ \n\e[0;36m└───>[\e[1;33m${PWD}\e[0;36m]\e[1;37m \$ ' #fi alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' # Get weather (replace the 71822 in the url with your own zipcode, call it by typing weather) weather () { declare -a WEATHERARRAY WEATHERARRAY=( `elinks -dump "http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=weather+34769&btnG=Search" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`) echo ${WEATHERARRAY[@]} } # Get weather (replace the 71822 in the url with your own zipcode, call it by typing weather) weatherny () { declare -a WEATHERARRAY WEATHERARRAY=( `elinks -dump "http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=weather+13603&btnG=Search" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`) echo ${WEATHERARRAY[@]} } # Get IP (call with myip) function myip { myip=`elinks -dump http://checkip.dyndns.org:8245/` echo "${myip}" }