fixed intendation
This commit is contained in:
parent
865c3e2332
commit
35d1e634ea
|
@ -2,19 +2,18 @@
|
|||
# It might not be very useful for you.
|
||||
|
||||
|
||||
# Options
|
||||
# **** zsh 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 vs='vim $ZSH/myzsh.sh && source ~/.zshrc'
|
||||
#alias vu='cd $ZSH > /dev/null; git pull origin master; cd - > /dev/null; echo $timestamp > $ZSH/lastrun; source ~/.zshrc'
|
||||
# **** aliases definitions ****
|
||||
alias zz='source $HOME/.zshrc'
|
||||
alias vz='vim $HOME/.zshrc && source $HOME/.zshrc'
|
||||
alias vp='vim $ZSH_CUSTOM/plugins/zsh-david/zsh-david.plugin.zsh && source $HOME/.zshrc'
|
||||
alias vu='upgrade_oh_my_zsh && _upgrade_custom'
|
||||
alias vi='vim'
|
||||
alias v='vim'
|
||||
alias vv='vim $HOME/.vimrc'
|
||||
alias serve="python2 -m SimpleHTTPServer"
|
||||
alias push="git push origin master"
|
||||
alias pull="git pull origin master"
|
||||
|
@ -36,14 +35,16 @@ alias systemctl='sudo systemctl'
|
|||
alias se='ls /usr/bin | grep'
|
||||
|
||||
|
||||
# Variables
|
||||
# **** variables ****
|
||||
export EDITOR=vim
|
||||
if [[ $LANG = '' ]]; then
|
||||
export LANG=en_US.UTF-8
|
||||
fi
|
||||
|
||||
|
||||
# Functions
|
||||
# **** function definitions ****
|
||||
|
||||
## RDP client
|
||||
rdp()
|
||||
{
|
||||
|
||||
|
@ -75,20 +76,16 @@ rdp()
|
|||
if [ $? -eq 0 ]; then
|
||||
#xfreerdp +clipboard /v:$server /u:$username /d:$domain /size:1920x1080
|
||||
xfreerdp /v:$server /u:$username /d:$domain /size:1366x768 -wallpaper:on
|
||||
|
||||
else
|
||||
echo "error: no rdp client found"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
## OS Upgrade for various systems.
|
||||
update()
|
||||
{
|
||||
# OS Upgrade function for various systems.
|
||||
|
||||
#checking for system
|
||||
systems="ubuntu arch solus raspbian antergos"
|
||||
issue="$(cat /etc/issue)"
|
||||
for item in $systems; do
|
||||
|
@ -98,7 +95,6 @@ update()
|
|||
fi
|
||||
done
|
||||
|
||||
#trying to update parsed system
|
||||
case $system in
|
||||
ubuntu|debian|raspbian)
|
||||
echo "Updating Ubuntu/Debian.."
|
||||
|
@ -124,10 +120,9 @@ update()
|
|||
|
||||
}
|
||||
|
||||
## Cross-platform install routine
|
||||
install()
|
||||
{
|
||||
|
||||
#checking for system
|
||||
systems="ubuntu arch"
|
||||
issue="$(cat /etc/issue)"
|
||||
packages=$*
|
||||
|
@ -149,9 +144,9 @@ install()
|
|||
echo "unknown system. could not run install."
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
## Thinkpad Trackpoint input fix (for for thinkpad x131e/chromebook)
|
||||
fixtrackpoint()
|
||||
{
|
||||
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
|
||||
|
|
Loading…
Reference in New Issue