-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
57 lines (47 loc) · 2.76 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize
shopt -s globstar
alias ls='ls -h --color=auto'
alias ll='ls -alF'
alias la='ls -AF'
alias l='ls -CF'
alias yay='yay --color=always'
alias aur='yay --color=always'
alias less="less -R"
alias pacman='pacman --color=always'
alias trans='trans :en+es -b'
alias vimode='set -o vi && bind "set show-mode-in-prompt on"'
alias emacsmode='set -o emacs && bind "set show-mode-in-prompt off"'
alias getip='curl -s checkip.dyndns.org | sed -n "s/.*\(IP Address: .*\)<\/b.*$/\n \1\n/p"'
alias weather2='echo -e "\n$(curl -s "wttr.in/{Houston,Hesperia}?format=%20%20%l,%20%c%20%20%C,%20%t,%20%w\n")\n"'
alias gold='curl -sL https://kitco.com | sed -n "s/.*AU-low.>\([0-9]\{1,4\}\.[0-9]\{2\}\).*AU-high.>\([0-9]\{1,4\}\.[0-9]\{2\}\).*$/\n Gold Price:\n low:\1 high:\2\n/p"'
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias mapscii='telnet mapscii.me'
moon() { echo; curl -s wttr.in/Moon@$1 | head -n 24; }
weather() { echo; curl -s wttr.in/$1 | sed "s/Follow.*//g"; }
weather3() { echo -e "\n$(curl -s wttr.in/{$(echo $@ | sed 's/ /%20/g')}?format="%13%20%20%l,%20%c%20%20%C,%20%t,%20%w\n")\n"; }
clbin() { cat $1 | curl -F 'clbin=<-' https://clbin.com; }
ipinfo() { ping -W 1 -4 -c 1 $1 2> /dev/null | curl -s ipinfo.io/$(sed -n '1s/.*(\(.*\)).*(.*).*$/\1/p') | sed 's/[{},\"]//g;s/.*missingauth//g'; }
github() { if [[ -z "$1" ]]; then r=kungfubeaner; else r=$1; fi; curl -s https://api.github.com/users/$r/repos?per_page=1000 | jq .[].git_url | sed 's/git:/https:/g;s/\"//g'; }
gitclone() { if [[ -z "$1" ]]; then r=kungfubeaner; else r=$1; fi; dialog --stdout --no-tags --menu "Choose: " 25 80 30 $(curl -s https://api.github.com/users/$r/repos?per_page=1000 | jq .[].git_url | sed 's/git:/https:/g;s/\"//g' | sed -n 's/\(.*\)/\1 \1/p') | xargs git clone; }
define() { curl -s https://www.lexico.com/en/definition/$1 | sed -n 's/<meta name="description" content="What.* as \(.*\)".*$/\n\1\n/p' | sed "s/'/'/g"; }
transdef() { echo; trans $1 ${@:2} && define $1 | trans ${@:2}; }
mdless() { glow -p -s dark "$@"; }
cbplay() { if [[ -z "$1" ]]; then r=; else r=?page=$1; fi; devour mpv --volume=0 $(curl -sL "https://chaturbate.com/female-cams/$r" | sed -n 's/<img src=".*\/\(.*\)\.jpg?[0-9]\+" width="180".*$/https:\/\/chaturbate.com\/\1\//p'); }
PS1='[\[\033[01;36m\]\u@\h\[\033[0m\]:\[\033[00;94m\]\w\[\033[00m\]]\$ '
#source /usr/share/doc/pkgfile/command-not-found.bash
#xmodmap -e "keycode 135 = Super_R"
export PYTHONDONTWRITEBYTECODE=X
export PATH=$PATH:.:~/.local/bin:~/scripts
export LS_COLORS=$LS_COLORS'di=0;36:ow=0;35:'
export EDITOR=vim
export PICO_SDK_PATH=/opt/pico-sdk