Advertisement
v1ral_ITS

aliases.zsh from ~/.oh-my-zsh/custom/aliases.zsh [BACKUP]

Jul 14th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.07 KB | None | 0 0
  1. # Console colors
  2. white='\033[0m'  # white (normal)
  3. red='\033[31m'  # red
  4. green='\033[32m'  # green
  5. orange='\033[33m'  # orange
  6. blue='\033[34m'  # blue
  7. purple='\033[35m'  # purple
  8. cyan='\033[36m'  # cyan
  9. gray='\033[37m'  # gray
  10. ###################
  11. # START FUNCTIONS #
  12. ###################
  13. aptg1() {
  14.     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"
  15.     read n
  16.     case $n in
  17.         1) sudo apt-get -y update ;;
  18.         2) sudo apt-get -y upgrade ;;
  19.         3) sudo apt-get -y dist-upgrade ;;
  20.         4) echo "Search What: "; read SRC; apt search '$SRC' ;;
  21.         5) echo "Download What .deb: "; read DEB; sudo apt-get -y download $DEB ;;
  22.         6) sudo apt-get -y autoremove && sudo apt-get -y clean ;;
  23.         7) echo "Install What:"; read SIN ; sudo apt-get -y install $SIN ;;
  24.             *) invalid option ;;
  25.     esac
  26. }
  27. sin() {
  28.     echo -e "\nInstall What: "
  29.     read INS
  30.     sudo apt-get -y install $INS
  31. }
  32. httpserver() {
  33.     echo ""
  34.     echo ""
  35.     echo -e "You can Enter Any Begining [root] Directory To Start This Server, [press [E]nter to (c)ontinue: ]"
  36.     read NULL
  37.     echo ""
  38.     echo ""
  39.     echo "Checking Filesystem........      "
  40.     sleep 2
  41.     echo ""
  42.     echo -e "\nPlease Now Enter Begining Directory For Server: "
  43.     read SRVROOT
  44.     echo -e  "Specify A 4 Digit Number For The Port: "
  45.     read PRT
  46.         echo -e "Automatic Showing Of index.html On Or Off: \npress {Y}es or {N}o\n"
  47.         read ANS   
  48.         if [[ $ANS == y ]]; then
  49.         shttps --index -u -p $PRT $SRVROOT
  50.         fi
  51.     if [[ $ANS == n ]]; then
  52.     shttps -u -p $PRT $SRVROOT
  53.     fi
  54. }
  55. new_bash() {
  56.     echo -e "\nBash Aliases, are formated \n like so, for example,"
  57.     echo -e "alias x='exit' \nSo for the formula we use \nalias abbreviation=definition"
  58.     echo -e "So Lets Begin With ABREV, \n I have Already set the pre alias command"
  59.     echo -e "\nSet abbreviation To What:  "
  60.     read ABREV
  61.     echo -e "Okay Now The definition, \nAnd I will Give You A Graphical"
  62.     echo -e "Interface to use, \nSo use as much room as you need"
  63.     echo "alias $ABREV='$(kdialog --title='ImPerial TeK Solutions' --inputbox='Define Alias Command')'" >> $HOME/.oh-my-zsh/custom/aliases.zsh
  64.     cat $HOME/.oh-my-zsh/custom/aliases.zsh
  65. }
  66. bookmarkurl() {
  67.     URL="$(kdialog --title=Bookmarks --inputbox=URL/Files)"
  68.     echo -e "\n`date` \n$URL" >> $HOME/bookmarks-url
  69.     \cat $HOME/bookmarks-url
  70. }
  71. tarcz() {
  72.     clear
  73.     ls
  74.     echo -e "\nName The tar.gz: \n"
  75.     read TZF
  76.     clear
  77.     ls
  78.     echo -e "\nWhat File or Directory to tar.gz: "
  79.     read GAR
  80.     sudo tar czf $TZF.tar.gz $GAR
  81. }
  82. new_cd() {
  83.     cd "$*"
  84.     ls
  85.     echo "Current Directory="`pwd`""
  86. }
  87. updupg() {
  88.     sudo apt update
  89.     sudo apt upgrade
  90.     sudo apt dist-upgrade
  91.     sudo apt-get update
  92.     sudo apt-get upgrade
  93.     sudo apt-get dist-upgrade
  94. }
  95. nap() {
  96.     echo -e "\nChoose any Video, \nFile by it Self, \nOr Directory, \nTo Play playlist, \n No Audio Video Player: \n"
  97.     read PLY
  98.     mpv --no-audio "$PLY"
  99. }
  100. settings1() {
  101.     echo -e "$orange \n1)Display     $red 2)Sound $blue \n3)Network     $cyan 4)Themes $red \n5)Users   $gray 6)General"
  102.     read n
  103.     case $n in
  104.         1) cinnamon-settings display ;;
  105.         2) cinnamon-settings sound ;;
  106.         3) cinnamon-settings network ;;
  107.         4) cinnamon-settings themes ;;
  108.         5) cinnamon-settings-users ;;
  109.         6) cinnamon-settings general
  110. esac
  111. }
  112. #################
  113. # START SLIASES #
  114. #################
  115. # alias zshconfig="mate ~/.zshrc"
  116. # alias ohmyzsh="mate ~/.oh-my-zsh"
  117. alias c='clear'
  118. alias x='exit'
  119. alias h='cd $HOME'
  120. alias m='cd $MHOME'
  121. alias p='PS1="%F{green}ITS%F{red}@%F{white}v3t ~ %F{yellow}  "'
  122. alias cd='new_cd'
  123. alias newb='new_bash'
  124. alias aptg='aptg1'
  125. alias sin='echo "Install What: " ; read LSU ; sudo apt-get install $LSU '
  126. alias a='alias'
  127. alias bmu='bookmarkurl'
  128. alias chx='chmod +x $(ls | zenity --title "Easy GUI For Any Output" --list --column "ImPerial TeK. Solutions {v1ral_ITS}" --width=1000 --height=200)'
  129. alias czf='tarcz'
  130. export MHOME='/media/g0ne_/MISC.'
  131. alias media='"/media/g0ne_/$(ls /media/g0ne_/ | zenity --list --column "Choose Folder")"'
  132. export MHOMEX='/media/g0ne_/XVIDS'
  133. export MHOMEMUSIC='/media/g0ne_/MUSIC'
  134. export MHOMEM='/media/g0ne_/MOVIES'
  135. alias az='aptg'
  136. alias zrc='vim $HOME/.zshrc'
  137. alias rm='rm -rf'
  138. alias wspace='sudo bash /home/g0ne_/bin/whitespace'
  139. alias catgui='kdialog --textbox $(ls | please zenity --list --column "Choose File To Cat") 512 286'
  140. alias zshrc='gedit ~/.oh-my-zsh/custom/aliases.zsh'
  141. alias fullup='updupg'
  142. alias gdl='drive download "$(kdialog --title "Copy/Paste Items ID #" --inputbox "File/Directorys ID")"'
  143. alias gup='drive upload $(ls | zenity --list --column "Choose File To Upload")'
  144. alias gupdir='drive upload --recursive $(kdialog --getexistingdirectory /)'
  145. alias smp='smplayer $(kdialog --title "Choose Directory For play-list; " --getexistingdirectory / )'
  146. alias nmp='mpv --no-video "$(kdialog --title "Choose Folder" --getexistingdirectory /)"'
  147. alias unz='unzip *.zip'
  148. alias ifc='ifconfig'
  149. alias mvp='mpv --no-audio "$(kdialog --title "Choose Folder" --getexistingdirectory /)"'
  150. alias calc='gnome-calculator'
  151. alias settings='settings1'
  152. alias sound='cinnamon-settings sound'
  153. alias tarl='sudo tar --list -f "$(ls | gui)"'
  154. alias 7zl='sudo 7z l "$(ls | gui)"'
  155. alias cdg='cd $PWD/$(ls | gui)'
  156. alias lsg='ls | gui'
  157. alias choall='sudo chown -R g0ne_ $PWD/*'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement