mirror of
https://github.com/sigmasternchen/desktopConfig
synced 2025-03-15 05:38:54 +00:00
some changes :3
This commit is contained in:
parent
a1825f264d
commit
a0dd4f3c01
3 changed files with 39 additions and 3 deletions
|
@ -41,8 +41,44 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||||
#PROMPT="%F{red}%(?..%U%?%b%u)%F{cyan}%~ %B%#%b%f "
|
#PROMPT="%F{red}%(?..%U%?%b%u)%F{cyan}%~ %B%#%b%f "
|
||||||
#RPROMPT="%F{magenta}[%l]%f"
|
#RPROMPT="%F{magenta}[%l]%f"
|
||||||
|
|
||||||
|
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||||
|
|
||||||
autoload promptinit
|
autoload promptinit
|
||||||
promptinit
|
promptinit
|
||||||
prompt overflow
|
prompt overflow
|
||||||
|
|
||||||
|
alias please=sudo
|
||||||
|
alias plz=gksu
|
||||||
|
alias edit=vim
|
||||||
|
alias sniffer=wireshark
|
||||||
|
alias whereami=pwd
|
||||||
|
alias whatami="ip addr | grep inet"
|
||||||
|
alias whatisthis=hostname
|
||||||
|
alias whatsthetime="date +%T"
|
||||||
|
alias mrpropper=clear
|
||||||
|
|
||||||
|
function proxy(){
|
||||||
|
echo -n "username:"
|
||||||
|
read username
|
||||||
|
echo -n "password:"
|
||||||
|
read -s password
|
||||||
|
export http_proxy="https://$username:$password@192.168.195.101:8080/"
|
||||||
|
export https_proxy=$http_proxy
|
||||||
|
export ftp_proxy=$http_proxy
|
||||||
|
export rsync_proxy=$http_proxy
|
||||||
|
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
|
||||||
|
echo -e "\nProxy environment variable set."
|
||||||
|
}
|
||||||
|
function proxyoff(){
|
||||||
|
unset HTTP_PROXY
|
||||||
|
unset http_proxy
|
||||||
|
unset HTTPS_PROXY
|
||||||
|
unset https_proxy
|
||||||
|
unset FTP_PROXY
|
||||||
|
unset ftp_proxy
|
||||||
|
unset RSYNC_PROXY
|
||||||
|
unset rsync_proxy
|
||||||
|
echo -e "\nProxy environment variable removed."
|
||||||
|
}
|
||||||
|
|
||||||
./.messagerc
|
./.messagerc
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
pushd /sys/class/power_supply/BAT0 > /dev/null
|
pushd /sys/class/power_supply/BAT0 > /dev/null
|
||||||
|
|
||||||
now=`cat charge_now`
|
now=`cat energy_now`
|
||||||
full=`cat charge_full`
|
full=`cat energy_full`
|
||||||
|
|
||||||
percentage=`python -c "print (int($now.0/$full*100 + 0.5))"`
|
percentage=`python -c "print (int($now.0/$full*100 + 0.5))"`
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
python -c "print (int(`sensors | grep Physical | awk '{ print $4 }' | awk -F "°" '{ print $1 }'`))"
|
python -c "print (int(`sensors | grep high | awk '{ print $2 }' | awk -F "°" '{ print $1 }'`))"
|
||||||
|
|
Loading…
Reference in a new issue