Advertisement
Jackspade9624

anon-kali.sh

Apr 16th, 2025 (edited)
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. cd $HOME
  2.  
  3. rm -rf ~/.bashrc
  4.  
  5. echo "# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  6. # for examples
  7.  
  8. # If not running interactively, don't do anything
  9. case $- in
  10. *i*) ;;
  11. *) return;;
  12. esac
  13.  
  14. # don't put duplicate lines or lines starting with space in the history.
  15. # See bash(1) for more options
  16. HISTCONTROL=ignoreboth
  17.  
  18. # append to the history file, don't overwrite it
  19. shopt -s histappend
  20.  
  21. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  22. HISTSIZE=1000
  23. HISTFILESIZE=2000
  24.  
  25. # check the window size after each command and, if necessary,
  26. # update the values of LINES and COLUMNS.
  27. shopt -s checkwinsize
  28.  
  29. # If set, the pattern "**" used in a pathname expansion context will
  30. # match all files and zero or more directories and subdirectories.
  31. #shopt -s globstar
  32.  
  33. # make less more friendly for non-text input files, see lesspipe(1)
  34. #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  35.  
  36. # set variable identifying the chroot you work in (used in the prompt below)
  37. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  38. debian_chroot=$(cat /etc/debian_chroot)
  39. fi
  40.  
  41. # set a fancy prompt (non-color, unless we know we "want" color)
  42. case "$TERM" in
  43. xterm-color|*-256color) color_prompt=yes;;
  44. esac
  45.  
  46. # uncomment for a colored prompt, if the terminal has the capability; turned
  47. # off by default to not distract the user: the focus in a terminal window
  48. # should be on the output of commands, not on the prompt
  49. force_color_prompt=yes
  50.  
  51. if [ -n "$force_color_prompt" ]; then
  52. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  53. # We have color support; assume it's compliant with Ecma-48
  54. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  55. # a case would tend to support setf rather than setaf.)
  56. color_prompt=yes
  57. else color_prompt=
  58. fi
  59. fi
  60.  
  61. # The following block is surrounded by two delimiters.
  62. # These delimiters must not be modified. Thanks.
  63. # START KALI CONFIG VARIABLES
  64. PROMPT_ALTERNATIVE=twoline
  65. NEWLINE_BEFORE_PROMPT=yes
  66. # STOP KALI CONFIG VARIABLES
  67.  
  68. if [ "$color_prompt" = yes ]; then
  69. # override default virtualenv indicator in prompt
  70. VIRTUAL_ENV_DISABLE_PROMPT=1
  71.  
  72. prompt_color='\[\033[;32m\]'
  73. info_color='\[\033[1;34m\]'
  74. prompt_symbol=㉿
  75. if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user
  76. prompt_color='\[\033[;94m\]'
  77. info_color='\[\033[0;34m\]'
  78. # Skull emoji for root terminal
  79. #prompt_symbol=💀
  80. fi
  81. case "$PROMPT_ALTERNATIVE" in
  82. twoline)
  83. PS1=$prompt_color'┌──${debian_chroot:+($debian_chroot)──}${VIRTUAL_ENV:+(\[\033[0;1m\]$(basename $VIRTUAL_ENV)'$prompt_color')}('$info_color'j4ck'$prompt_symbol'kali'$prompt_color')-[\[\033[1;96m\]\w'$prompt_color']\n'$prompt_color'└─'$info_color'\$\[\033[1;97m\] ';;
  84. oneline)
  85. PS1='${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV)) }${debian_chroot:+($debian_chroot)}'$info_color'\u@\h\[\033[00m\]:'$prompt_color'\[\033[01m\]\w\[\033[00m\]\$ ';;
  86. backtrack)
  87. PS1='${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV)) }${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ';;
  88. esac
  89. unset prompt_color
  90. unset info_color
  91. unset prompt_symbol
  92. else
  93. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  94. fi
  95. unset color_prompt force_color_prompt
  96.  
  97. # If this is an xterm set the title to user@host:dir
  98. case "$TERM" in
  99. xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
  100. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  101. ;;
  102. *)
  103. ;;
  104. esac
  105.  
  106. [ "$NEWLINE_BEFORE_PROMPT" = yes ] && PROMPT_COMMAND="PROMPT_COMMAND=echo"
  107.  
  108. # enable color support of ls, less and man, and also add handy aliases
  109. if [ -x /usr/bin/dircolors ]; then
  110. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  111. export LS_COLORS="$LS_COLORS:ow=30;44:" # fix ls color for folders with 777 permissions
  112. alias ls='ls --color=auto'
  113. #alias dir='dir --color=auto'
  114. #alias vdir='vdir --color=auto'
  115. alias grep='grep --color=auto'
  116. alias fgrep='fgrep --color=auto'
  117. alias egrep='egrep --color=auto'
  118. alias diff='diff --color=auto'
  119. alias ip='ip --color=auto'
  120.  
  121. export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
  122. export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
  123. export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
  124. export LESS_TERMCAP_so=$'\E[01;33m' # begin reverse video
  125. export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
  126. export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
  127. export LESS_TERMCAP_ue=$'\E[0m' # reset underline
  128. fi
  129.  
  130. # colored GCC warnings and errors
  131. #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  132.  
  133. # some more ls aliases
  134. alias ll='ls -l'
  135. alias la='ls -A'
  136. alias l='ls -CF'
  137.  
  138. # Alias definitions.
  139. # You may want to put all your additions into a separate file like
  140. # ~/.bash_aliases, instead of adding them here directly.
  141. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  142.  
  143. if [ -f ~/.bash_aliases ]; then
  144. . ~/.bash_aliases
  145. fi
  146.  
  147. # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  148. # sources /etc/bash.bashrc).
  149. if ! shopt -oq posix; then
  150. if [ -f /usr/share/bash-completion/bash_completion ]; then
  151. . /usr/share/bash-completion/bash_completion
  152. elif [ -f /etc/bash_completion ]; then
  153. . /etc/bash_completion
  154. fi
  155. fi" >> ~/.bashrc
  156.  
  157. source ~/.bashrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement