david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

deleted ~file

This commit is contained in:
david 2017-11-27 09:25:29 +01:00
parent dcc3f940fa
commit 79c09b72d4
2 changed files with 0 additions and 188 deletions

View File

@ -122,29 +122,9 @@ rdp()
}
pullmyzsh()
{
cd $ZSH
git pull origin master
cd -
}
pushmyzsh()
{
cd $ZSH
git add **/*[^lastrun]
git commit -am "pushmyzsh $(date "+%d.%m.%Y %H:%M")"
git push origin master
cd -
}
update()
{
#
# OS Upgrade function for various systems.
#
#checking for system
systems="ubuntu arch solus raspbian antergos"

View File

@ -1,168 +0,0 @@
# Options
set -o shwordsplit
# Aliases
alias zz='source ~/.zshrc'
alias vz='vim ~/.zshrc && source ~/.zshrc'
alias vp='vim $ZSH/plugins/david.zsh && source ~/.zshrc'
alias vt='vim $ZSH/themes/david.zsh && source ~/.zshrc'
alias vi='vim'
alias vless="/usr/share/vim/vim73/macros/less.sh"
alias publish="python2 -m SimpleHTTPServer"
alias push="git push origin master"
alias pull="git pull origin master"
alias dev="ssh -l david 10.9.0.43"
alias t="todo.sh"
alias vpn="sudo openvpn --writepid /var/run/openvpn --config /home/david/.vpn/david.conf"
alias aec="sshuttle -vvr 90.146.8.233 192.168.6.0/24 90.146.8.0/26 10.9.0.0/26 10.12.0.0/16 10.2.0.0/26 192.168.3.0/24 10.12.4.0/22"
alias home="sshuttle -vvr stargazer.socialnerds.org:2222 10.1.2.0/24"
alias aec="sshuttle -vvr 90.146.8.9 90.146.8.0/26"
alias c="clear"
alias bat="acpi && date"
alias vn="vim ~/ownCloud/Notes/notes.md"
#alias spacedock="sshfs spacedock.socialnerds.org:/ /home/david/spacedock"
# Functions
pingscan()
{
nmap -sP $@ | grep "Nmap"
}
rdp()
{
if [ -z $1 ]; then
echo -e "server: \c"
read server
else
server=$1
fi
echo -e "username [davidadm]: \c"
read username
if [ -z $username ]; then
username="davidadm"
fi
echo -e "domain [aec.at]: \c"
read domain
if [ -z $domain ]; then
domain="aec.at"
fi
<<<<<<< HEAD
which rdesktop >/dev/null
if [ $? -eq 0 ]; then
#rdesktop -u $username -p - -d $domain -g 1366x768 $server -k de
rdesktop -K -u $username -p - -d $domain -g workarea $server -k de
else
which xfreerdp >/dev/null
if [ $? -eq 0 ]; then
xfreerdp /v:$server /u:$username /d:$domain /size:1920x1080
else
echo "error: no rdp client found"
exit 1
fi
fi
=======
#rdesktop -u $username -p - -d $domain -g 1366x768 $server -k de
rdesktop -K -u $username -p - -d $domain -g workarea $server -k de -x l
>>>>>>> 09c08907e220f0e3c8c0165ce31ac4129581a9d4
}
pullmyzsh()
{
cd $ZSH
git pull origin master
cd -
}
pushmyzsh()
{
cd $ZSH
git add **/*[^lastrun]
git commit -am "pushmyzsh $(date "+%d.%m.%Y %H:%M")"
git push origin master
cd -
}
update()
{
#checking for system
systems="ubuntu arch"
issue="$(cat /etc/issue)"
for item in $systems; do
echo $issue | grep -i $item >> /dev/null
if [ $? -eq 0 ]; then
system=$item
fi
done
case $system in
ubuntu)
sudo apt-get update && sudo apt-get dist-upgrade
;;
arch)
sudo pacman -Syu
;;
?)
echo "unknown system. could not run update."
;;
esac
}
install()
{
#checking for system
systems="ubuntu arch"
issue="$(cat /etc/issue)"
packages=$*
for item in $systems; do
echo $issue | grep -i $item >> /dev/null
if [ $? -eq 0 ]; then
system=$item
fi
done
case $system in
ubuntu)
sudo apt-get install -y $packages
;;
arch)
sudo pacman -Sy --noconfirm $packages
;;
?)
echo "unknown system. could not run install."
;;
esac
}
is_dirty()
{
local SUBMODULE_SYNTAX=''
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
fi
if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then
return 1
else
return 0
fi
}
fixtrackpoint()
{
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.75
}