mirror of
https://github.com/sigmasternchen/desktopConfig
synced 2025-03-15 05:38:54 +00:00
95 lines
2.4 KiB
Bash
95 lines
2.4 KiB
Bash
# 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
|
|
|
|
figlet -t -f small -c $(greetings) | lolcat -s 80
|
|
echo "You are on $(hostname)." | lolcat -F 0.5
|
|
|
|
echo
|
|
if test $(todo -n) = 0; then
|
|
echo "No tasks to do. \o/"
|
|
else
|
|
todo
|
|
fi
|
|
echo
|