Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Console colors
- white='\033[0m' # white (normal)
- red='\033[31m' # red
- green='\033[32m' # green
- orange='\033[33m' # orange
- blue='\033[34m' # blue
- purple='\033[35m' # purple
- cyan='\033[36m' # cyan
- gray='\033[37m' # gray
- ###################
- # 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 ""
- echo -e "You can Enter Any Begining [root] Directory To Start This Server, [press [E]nter to (c)ontinue: ]"
- read NULL
- echo ""
- echo ""
- echo "Checking Filesystem........ "
- sleep 2
- echo ""
- echo -e "\nPlease Now Enter Begining Directory For Server: "
- read SRVROOT
- echo -e "Specify A 4 Digit Number For The Port: "
- read PRT
- echo -e "Automatic Showing Of index.html On Or Off: \npress {Y}es or {N}o\n"
- read ANS
- if [[ $ANS == y ]]; then
- shttps --index -u -p $PRT $SRVROOT
- fi
- if [[ $ANS == n ]]; then
- shttps -u -p $PRT $SRVROOT
- fi
- }
- 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
- }
- nap() {
- echo -e "\nChoose any Video, \nFile by it Self, \nOr Directory, \nTo Play playlist, \n No Audio Video Player: \n"
- read PLY
- mpv --no-audio "$PLY"
- }
- settings1() {
- echo -e "$orange \n1)Display $red 2)Sound $blue \n3)Network $cyan 4)Themes $red \n5)Users $gray 6)General"
- read n
- case $n in
- 1) cinnamon-settings display ;;
- 2) cinnamon-settings sound ;;
- 3) cinnamon-settings network ;;
- 4) cinnamon-settings themes ;;
- 5) cinnamon-settings-users ;;
- 6) cinnamon-settings general
- esac
- }
- #################
- # 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{green}ITS%F{red}@%F{white}v3t ~ %F{yellow} "'
- alias cd='new_cd'
- alias newb='new_bash'
- alias aptg='aptg1'
- alias sin='echo "Install What: " ; read LSU ; sudo apt-get install $LSU '
- alias a='alias'
- alias bmu='bookmarkurl'
- alias chx='chmod +x $(ls | zenity --title "Easy GUI For Any Output" --list --column "ImPerial TeK. Solutions {v1ral_ITS}" --width=1000 --height=200)'
- alias czf='tarcz'
- export MHOME='/media/g0ne_/MISC.'
- alias media='"/media/g0ne_/$(ls /media/g0ne_/ | zenity --list --column "Choose Folder")"'
- export MHOMEX='/media/g0ne_/XVIDS'
- export MHOMEMUSIC='/media/g0ne_/MUSIC'
- export MHOMEM='/media/g0ne_/MOVIES'
- alias az='aptg'
- alias zrc='vim $HOME/.zshrc'
- alias rm='rm -rf'
- alias wspace='sudo bash /home/g0ne_/bin/whitespace'
- alias catgui='kdialog --textbox $(ls | please zenity --list --column "Choose File To Cat") 512 286'
- alias zshrc='gedit ~/.oh-my-zsh/custom/aliases.zsh'
- alias fullup='updupg'
- alias gdl='drive download "$(kdialog --title "Copy/Paste Items ID #" --inputbox "File/Directorys ID")"'
- alias gup='drive upload $(ls | zenity --list --column "Choose File To Upload")'
- alias gupdir='drive upload --recursive $(kdialog --getexistingdirectory /)'
- alias smp='smplayer $(kdialog --title "Choose Directory For play-list; " --getexistingdirectory / )'
- alias nmp='mpv --no-video "$(kdialog --title "Choose Folder" --getexistingdirectory /)"'
- alias unz='unzip *.zip'
- alias ifc='ifconfig'
- alias mvp='mpv --no-audio "$(kdialog --title "Choose Folder" --getexistingdirectory /)"'
- alias calc='gnome-calculator'
- alias settings='settings1'
- alias sound='cinnamon-settings sound'
- alias tarl='sudo tar --list -f "$(ls | gui)"'
- alias 7zl='sudo 7z l "$(ls | gui)"'
- alias cdg='cd $PWD/$(ls | gui)'
- alias lsg='ls | gui'
- alias choall='sudo chown -R g0ne_ $PWD/*'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement