Weydoo

bashrc

Aug 12th, 2026
598
1
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.82 KB | None | 1 0
  1. ## History ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  2. shopt -s histappend # Don't overwrite history
  3. HISTCONTROL=ignoredups:ignorespace:erasedups # Ignore duplicate and spaces in history
  4. HISTSIZE=10000 # History size
  5. HISTFILESIZE=10000 # History's file size
  6. HISTTIMEFORMAT="%F %T " # Date format (ex: 2026-07-23 18:30:00)
  7. export HISTFILE="$HOME/.bash_history" # Change the default location of the bash history file
  8. export HISTIGNORE="history:pwd" # Don't add these commands to history
  9.  
  10. if command -v fzf &> /dev/null; then
  11.     # Enable keyboard shortcuts (Ctrl+R, Alt+C) and auto-completion with fzf
  12.     eval "$(fzf --bash)"
  13.  
  14.     export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --border --inline-info"
  15. fi
  16.  
  17.  
  18. ## Console ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  19. shopt -s checkwinsize # Update window size after each command
  20. shopt -s globstar # Enable recursive globbing pattern (**/*)
  21. shopt -s cdspell # Auto-correct typos in directory paths with 'cd'
  22. shopt -s autocd # Change directory by typing its path without 'cd'
  23. shopt -s dirspell # Auto-correct typos during path completion
  24. shopt -s no_empty_cmd_completion # Do not attempt completion on an empty line
  25.  
  26.  
  27. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # Make less be able to display archive content
  28.  
  29. # Check if the terminal support colors
  30. case "$TERM" in
  31.     xterm-color|*-256color) color_prompt=yes;;
  32. esac
  33.  
  34. # Set the PS1
  35. if [ "$color_prompt" = yes ] && command -v starship &> /dev/null; then
  36.     eval "$(starship init bash)"
  37. else
  38.     PS1='\u@\h:\w\$ ' # Not colored
  39. fi
  40. unset color_prompt force_color_prompt
  41.  
  42. # If this is an xterm set the title to user@host:dir
  43. case "$TERM" in
  44. xterm*|rxvt*)
  45.     PS1="\[\e]0;\u@\h: \w\a\]$PS1"
  46.     ;;
  47. *)
  48.     ;;
  49. esac
  50.  
  51. # Enable completion
  52. if ! shopt -oq posix; then
  53.   if [ -f /usr/share/bash-completion/bash_completion ]; then
  54.     . /usr/share/bash-completion/bash_completion
  55.   elif [ -f /etc/bash_completion ]; then
  56.     . /etc/bash_completion
  57.   fi
  58. fi
  59.  
  60.  
  61.  
  62. ## Color support ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  63. if [ -x /usr/bin/dircolors ]; then
  64.     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  65.     alias ls='ls --color=auto'
  66.     alias dir='dir --color=auto'
  67.     alias vdir='vdir --color=auto'
  68.  
  69.     alias grep='grep --color=auto'
  70.     alias fgrep='fgrep --color=auto'
  71.     alias egrep='egrep --color=auto'
  72. fi
  73.  
  74. export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # Colored GCC warnings and errors
  75.  
  76.  
  77.  
  78. ## Aliases ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  79. if command -v eza &> /dev/null; then
  80.     alias eza='command eza --icons=always --group-directories-first --color=always'
  81.  
  82.     alias ls='eza'
  83.     alias l='eza -1'
  84.     alias ll='eza -lh --git'
  85.     alias la='eza -a'
  86.     alias lla='eza -lah --git'
  87.     alias lld='eza -lh --git --total-size'
  88.     alias llda='eza -lah --git --total-size'
  89.    
  90.     # Tree view (replaces the 'tree' command)
  91.     alias lt='eza --tree --level=2'
  92.     alias lt2='eza --tree --level=3'
  93.     alias lta='eza -a --tree --level=2'
  94. else
  95.     alias ll='ls -lh'
  96.     alias la='ls -Ah'
  97.     alias lla='ls -lah'
  98.     alias l='ls -CFh'
  99. fi
  100.  
  101. alias clearls='clear && ls'
  102.  
  103. # Cd
  104. alias ..='cd ..'
  105. alias ...='cd ../..'
  106. alias ....='cd ../../..'
  107. alias cd_='cd /'
  108.  
  109. # Git
  110. alias gitlog='git log --graph --oneline --stat'
  111. alias gitst='git status'
  112. alias gitcommit='git commit -m '
  113.  
  114. alias mkdir='mkdir -p' # Create all the parent directory
  115. alias free='free -m' # RAM usage in Mo
  116. alias codium='flatpak run com.vscodium.codium'
  117. alias ports='sudo netstat -tulanp'
  118.  
  119. alias temp_linux='docker run --rm -it -e TERM=xterm-256color temp-ubuntu bash'
  120.  
  121.  
  122.  
  123. ## Functions ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  124. # Display public IPv4 and IPv6 with clean formatting
  125. function myip() {
  126.     printf '──────────── My IP Addresses ────────────\n'
  127.     printf 'IPv4: '
  128.     curl -4 -s --connect-timeout 2 ifconfig.me || printf 'Not available'
  129.     printf '\nIPv6: '
  130.     curl -6 -s --connect-timeout 2 ifconfig.me || printf 'Not available'
  131.     printf '\n─────────────────────────────────────────\n'
  132. }
  133.  
  134. # Human readable disk usage (Mo/Go)
  135. function df() {
  136.     command df -h 2>/dev/null \
  137.     | awk '
  138.        NR==1;
  139.        NR>1 && $1 !~ /\/dev\/loop/ && $1 !~ /efivarfs/ {
  140.            print $0 | "sort -k6,6"
  141.        }
  142.      ' \
  143.     | sed -E '
  144.        s/([0-9]{1,2}%)/ \x1b[32m\1\x1b[0m/g
  145.        s/(9[0-9]%|100%)/ \x1b[31m\1\x1b[0m/g
  146.    '
  147. }
  148.  
  149. # Update package list and upgrade them
  150. function update() {
  151.     sudo apt update
  152.     sudo apt upgrade
  153. }
  154.  
  155. # Full upgrade allowing to install or remove packages to satisfy dependencies
  156. function full-update() {
  157.     read -p "Do you want to execute a full upgrade ? [y/N] " -n 1 -r
  158.     echo "" # Ajoute un saut de ligne propre après la saisie
  159.  
  160.     # Vérifie si la réponse est 'y' ou 'Y'
  161.     if [[ ! $REPLY =~ ^[YyOo]$ ]]; then
  162.         echo "Opération annulée."
  163.         return 1
  164.     fi
  165.  
  166.     sudo apt update
  167.     sudo apt full-upgrade -y
  168.     sudo apt autoremove -y
  169. }
  170.  
  171. # Automaticly extract tar.gz, zip, rar, etc.
  172. function extract() {
  173.   if [ -f "$1" ] ; then
  174.     case "$1" in
  175.       *.tar.bz2)   tar xjf "$1"     ;;
  176.       *.tar.gz)    tar xzf "$1"     ;;
  177.       *.bz2)       bunzip2 "$1"     ;;
  178.       *.rar)       unrar x "$1"     ;;
  179.       *.gz)        gunzip "$1"      ;;
  180.       *.tar)       tar xvf "$1"     ;;
  181.       *.tbz2)      tar xjf "$1"     ;;
  182.       *.tgz)       tar xzf "$1"     ;;
  183.       *.zip)       unzip "$1"       ;;
  184.       *.Z)         compress -d "$1" ;;
  185.       *.7z)        7z x "$1"        ;;
  186.       *)           echo "'$1' ne peut pas être extrait via extract()" ;;
  187.     esac
  188.   else
  189.     echo "'$1' n'est pas un fichier valide"
  190.   fi
  191. }
  192.  
  193. # Reload the ~/.bashrc
  194. function reload() {
  195.     clear
  196.     source ~/.bashrc && echo "~/.bashrc reloaded"
  197. }
  198.  
  199. # Create a folder and enter it
  200. function mkcd() {
  201.     mkdir -p "$1" && cd "$1" || return
  202. }
  203.  
  204. # Automaticaly enable the Python venv
  205. cd() {
  206.     if type deactivate >/dev/null 2>&1; then
  207.         deactivate
  208.     fi
  209.     command cd "$@" || return
  210.  
  211.     if [ -f ".venv/bin/activate" ]; then
  212.         source .venv/bin/activate
  213.     fi
  214. }
  215.  
  216.  
  217.  
  218. ## Path ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  219. # NVM Lazy loading
  220. export NVM_DIR="$HOME/.nvm"
  221. lazy_nvm() {
  222.   unset -f nvm node npm npx
  223.   [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
  224.   [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
  225. }
  226. nvm() { lazy_nvm; nvm "$@"; }
  227. node() { lazy_nvm; node "$@"; }
  228. npm() { lazy_nvm; npm "$@"; }
  229. npx() { lazy_nvm; npx "$@"; }
  230.  
  231.  
  232. # List of folders to add to path
  233. PATH_DIRS=(
  234.     "$HOME/.local/share/pnpm/bin"                       # PNPM
  235.     "$HOME/.cargo/bin"                                  # Cargo
  236.     "$HOME/.local/share/SLSsteam/path"                  # SLSsteam
  237.     "$HOME/.bun/bin"
  238. )
  239.  
  240. for dir in "${PATH_DIRS[@]}"; do
  241.     # Only add to path if the folder exist and if it isn't already in the path.
  242.     if [ -d "$dir" ] && [[ ":$PATH:" != *":$dir:"* ]]; then
  243.         export PATH="$dir:$PATH"
  244.     fi
  245. done
  246. unset PATH_DIRS dir
  247.  
  248.  
  249. ## Variables ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  250. export EDITOR='nano'
  251. export VISUAL="$EDITOR"
  252. export PAGER='less'
  253.  
  254. # bun
  255. export BUN_INSTALL="$HOME/.bun"
  256.  
Advertisement
Comments
  • User was banned
  • User was banned
  • Vexmikmi
    14 days
    # CSS 0.92 KB | 0 0
    1. ✅ Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1WhlQi8xpq819kqTE2nXcZTAeCgQ5m-ic2pm_7IZVt7w/edit?usp=sharing
    4.  
    5. This made me $12,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 50% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Changelly — instant swap).
    12.  
    13. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment