Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###################
- # START FUNCTIONS #
- ###################
- aptg1() {
- echo -e "CHOICES: \n1) Update \n2) Upgrade \n3) Dist-Upgrade \n4) Apt Search \n5) Apt Download .deb [no install] \n6) Apt Autoclean && Autoremove \n7) Install a .deb With apt-get"
- read n
- case $n in
- 1) sudo apt-get -y update ;;
- 2) sudo apt-get -y upgrade ;;
- 3) sudo apt-get -y dist-upgrade ;;
- 4) echo "Search What: "; read SRC; apt search '$SRC' ;;
- 5) echo "Download What .deb: "; read DEB; sudo apt-get -y download $DEB ;;
- 6) sudo apt-get -y autoremove && sudo apt-get -y clean ;;
- 7) echo "Install What:"; read SIN ; sudo apt-get -y install $SIN ;;
- *) invalid option ;;
- esac
- }
- sin() {
- echo -e "\nInstall What: "
- read INS
- sudo apt-get -y install $INS
- }
- httpserver() {
- echo ""
- echo ""
- read -p "You can Enter Any Begining [root] Directory To Start This Server"
- echo ""
- echo ""
- echo "Checking Filesystem........ "
- sleep 2
- echo ""
- echo -e "\nPlease Now Enter Begining Directory For Server: "
- read SRVROOT
- read -p "Specify A 4 Letter Number For The Port: " PRT
- sudo python2 -m SimpleHTTPServer '$PRT'
- }
- new_bash() {
- echo -e "\nBash Aliases, are formated \n like so, for example,"
- echo -e "alias x='exit' \nSo for the formula we use \nalias abbreviation=definition"
- echo -e "So Lets Begin With ABREV, \n I have Already set the pre alias command"
- echo -e "\nSet abbreviation To What: "
- read ABREV
- echo -e "Okay Now The definition, \nAnd I will Give You A Graphical"
- echo -e "Interface to use, \nSo use as much room as you need"
- echo "alias $ABREV='$(kdialog --title='ImPerial TeK Solutions' --inputbox='Define Alias Command')'" >> $HOME/.oh-my-zsh/custom/aliases.zsh
- cat $HOME/.oh-my-zsh/custom/aliases.zsh
- }
- bookmarkurl() {
- URL="$(kdialog --title=Bookmarks --inputbox=URL/Files)"
- echo -e "\n`date` \n$URL" >> $HOME/bookmarks-url
- \cat $HOME/bookmarks-url
- }
- tarcz() {
- clear
- ls
- echo -e "\nName The tar.gz: \n"
- read TZF
- clear
- ls
- echo -e "\nWhat File or Directory to tar.gz: "
- read GAR
- sudo tar czf $TZF.tar.gz $GAR
- }
- new_cd() {
- cd "$*"
- ls
- echo "Current Directory="`pwd`""
- }
- updupg() {
- sudo apt update
- sudo apt upgrade
- sudo apt dist-upgrade
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get dist-upgrade
- }
- #################
- # START SLIASES #
- #################
- # alias zshconfig="mate ~/.zshrc"
- # alias ohmyzsh="mate ~/.oh-my-zsh"
- alias c='clear'
- alias x='exit'
- alias h='cd $HOME'
- alias m='cd $MHOME'
- alias p='PS1=%F{red}g0ne_@%F{green}ITS%F{yellow}~'
- alias cd='new_cd'
- alias newb='new_bash'
- alias aptg='aptg1'
- alias c='clear'
- alias x='exit'
- alias sin='echo "Install What: " ; read LSU ; sudo apt-get install $LSU '
- alias a='alias'
- alias bmu='bookmarkurl'
- alias chx='chmod +x $(ls | zenity --list --column "What File")'
- alias catwild='echo "What File Format To Cat"; read FRM; cat *.'$FRM''
- alias czf='tarcz'
- export MHOME='/media/g0ne_/3639-3266'
- alias az='aptg'
- alias zrc='vim $HOME/.zshrc'
- alias rm='sudo rm -rf $*'
- alias wspace='sudo bash /home/g0ne_/bin/whitespace'
- alias cat='kdialog --textbox $(ls | zenity --list --column "Choose File To Cat") 512 286'
- alias zshrc='gedit ~/.oh-my-zsh/custom/aliases.zsh'
- alias fullupdate='updupg'
- alias gup='drive upload $(ls | zenity --list --column "Choose File To Upload")'
- alias gupdir='drive upload --recursive $(kdialog --getexistingdirectory /)'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement