bashrc (1967B)
1 # 2 # ~/.bashrc 3 # 4 5 # If not running interactively, don't do anything 6 [[ $- != *i* ]] && return 7 8 alias ls='ls --color=auto' 9 PS1='[\u@\h \W]\$ ' 10 # Cousas dos locales 11 export LANG=en_US.UTF-8 12 export LANGUAGE=en_US.UTF-8 13 export LC_COLLATE=C 14 export LC_CTYPE=en_US.UTF-8 15 # PROMPT (30: gris, 31:vermello, 32:verde, 33:amarelo, 34: azul, 35: rosa, 36: cian, 37: branco) 16 export PS1="\[\033[01;31m\][\[\033[01;36m\]x0tero \[\033[01;30m\]\W\[\033[01;31m\]]\[\033[00m\] " 17 # TERMINAL PRINCIPAL 18 export TERMINAL=st 19 # EDITOR PRINCIPAL 20 export EDITOR=nvim 21 # Cousas de NNN 22 export NNN_PLUG='p:preview-tui;t:preview-tabbed;i:imgview;' 23 export NNN_USE_EDITOR=1 24 export NNN_OPENER=/home/$USER/.config/nnn/plugins/nuke 25 export NNN_FIFO=/tmp/nnn.fifo 26 alias pdf=zathura 27 alias v=nvim 28 alias ase=aseprite 29 alias off='poweroff' 30 alias cp='cp -iv' 31 alias mv='mv -v' 32 alias rep='mpv --vo=null --video=no --no-video --term-osd-bar --no-resume-playback --shuffle' 33 alias redes='nmcli device wifi list' 34 alias desligar="nmcli connection down $({ nmcli | awk '/^wlp2s0/ {print $4}'; })" 35 alias dly="youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output \"%(title)s.%(ext)s\" --yes-playlist" 36 alias montar="sudo mount -t auto /dev/sda1 /media/usb_pau" 37 alias vim='nvim' 38 alias keys="eval '$(ssh-agent -s)'; ssh-add /home/chinomin/proxectos/testkey" 39 # Facer un script para conectarse a unha rede 40 # Funcion para acceder a nnn e cambie o pwd 41 n () 42 { 43 # Block nesting of nnn in subshells 44 if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then 45 echo "nnn xa esta funcionando meu" 46 return 47 fi 48 49 export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" 50 51 nnn -c -e -Rd "$@" 52 53 if [ -f "$NNN_TMPFILE" ]; then 54 . "$NNN_TMPFILE" 55 rm -f "$NNN_TMPFILE" > /dev/null 56 fi 57 } 58 59 # Se e a primeira vez na sesion 60 61 if [ "$INICIADA" == "siu" ]; then 62 neofetch 63 sudo ntpd -qg 64 return 65 fi 66 67 ## Blesh (autocompletado) 68 69 [[ $- == *i* ]] && . /usr/share/blesh/ble.sh 70