mirror of
https://github.com/sigmasternchen/desktopConfig
synced 2025-03-15 05:38:54 +00:00
laptop config
This commit is contained in:
parent
a0dd4f3c01
commit
6f13b90cb2
1 changed files with 96 additions and 0 deletions
96
home/overflow/.zshrc-laptop
Normal file
96
home/overflow/.zshrc-laptop
Normal file
|
@ -0,0 +1,96 @@
|
|||
if test "$(tty)" = "/dev/tty2"; then
|
||||
echo $(whoami)@$(hostname) at $(date)
|
||||
echo "Oh, looks like we are at VT2, let me start X11 for you." | cowsay -f tux
|
||||
startx
|
||||
exit
|
||||
elif test "$(tty)" = "/dev/tty3"; then
|
||||
echo $(whoami)@$(hostname) at $(date)
|
||||
echo "Oh, looks like we are at VT3, let me start Windows XP for you." | cowsay -f tux
|
||||
xinit .xinitrc-winxp -- /etc/X11/xinit/xserverrc :3 vt3
|
||||
exit
|
||||
fi
|
||||
|
||||
# Set up the prompt
|
||||
|
||||
#autoload -Uz promptinit
|
||||
#promptinit
|
||||
#prompt adam1
|
||||
|
||||
setopt histignorealldups sharehistory
|
||||
|
||||
# Use emacs keybindings even if our EDITOR is set to vi
|
||||
bindkey -e
|
||||
|
||||
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
HISTFILE=~/.zsh_history
|
||||
|
||||
# Use modern completion system
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
zstyle ':completion:*' auto-description 'specify: %d'
|
||||
zstyle ':completion:*' completer _expand _complete _correct _approximate
|
||||
zstyle ':completion:*' format 'Completing %d'
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*' menu select=2
|
||||
eval "$(dircolors -b)"
|
||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' list-colors ''
|
||||
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
|
||||
zstyle ':completion:*' menu select=long
|
||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||
zstyle ':completion:*' use-compctl false
|
||||
zstyle ':completion:*' verbose true
|
||||
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
||||
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
|
||||
# my lines
|
||||
|
||||
#PROMPT="%F{red}%(?..%U%?%b%u)%F{cyan}%~ %B%#%b%f "
|
||||
#RPROMPT="%F{magenta}[%l]%f"
|
||||
|
||||
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
|
||||
autoload promptinit
|
||||
promptinit
|
||||
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
|
Loading…
Reference in a new issue