Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active March 16, 2020 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/7322900ca6f9ce51fb6c5585a4fb91cb to your computer and use it in GitHub Desktop.
Save vpnwall-services/7322900ca6f9ce51fb6c5585a4fb91cb to your computer and use it in GitHub Desktop.
[Custom .zshrc] Customized .zshrc #custom #zshrc
export ZSH="/home/majes/.oh-my-zsh"
export EDITOR="/usr/bin/vim"
export GOPATH="$HOME/go"
export GOROOT="/usr/local/go"
ZSH_THEME="pygmalion"
plugins=(
git zsh-completions
)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh
alias agi="apt-get install -y"
alias d="ls -l"
alias genpass="cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%+'|fold -w 28| head -n 1|tr -d '\r\n'|xclip"
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
}
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
}
else
start_agent;
fi
# EASY PASSWORD IN PASTE BUFFER
alias PROD='sed -n 1p /home/majes/sticky-notes/main.txt|tr -d "\r\n"|xclip -sel clip'
alias QUAL='sed -n 2p /home/majes/sticky-notes/main.txt|tr -d "\r\n"|xclip -sel clip'
decode () {
echo "$1" | base64 -d ; echo
}
# GIT LOLA
git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"
# GIT PULL EVERY PROJECT IN WORKING FOLDER
alias EPPPULLGIT='cd /home/majes/ ; find . -name ".git" -type d | sed "s/\/.git//" | xargs -P10 -I{} git -C {} pull origin master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment