diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-10-24 06:44:47 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-10-24 06:44:47 +0200 |
commit | 4042e1913e2c32ee22b8d2549e831a0ca8ddf43a (patch) | |
tree | 1b20cc34d05a874646d6c6e1e1371e0fa63aa7f6 /roles/common/files/zshrc | |
parent | 2b230dcc9eed01796011430f9dea7174480320a2 (diff) | |
download | playbooks-ansible-4042e1913e2c32ee22b8d2549e831a0ca8ddf43a.tar.gz playbooks-ansible-4042e1913e2c32ee22b8d2549e831a0ca8ddf43a.tar.xz playbooks-ansible-4042e1913e2c32ee22b8d2549e831a0ca8ddf43a.zip |
Add inventory host section for the update playbook
Add rc files for zsh
Switch root login shell to zsh on all host
Remove /etc/hosts config for google and facebook domains:
Use Bind as authoritative zone server for main domains
It will be deployed on vm02 and mosquito hosts
Add npm missing package in cozycloud role
Remove cozycloud from site.yml because role is not ready to use
Add restorecon task on Bind log dir
Add dnsserver in site.yml because role is now ready to use
Diffstat (limited to 'roles/common/files/zshrc')
-rw-r--r-- | roles/common/files/zshrc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/roles/common/files/zshrc b/roles/common/files/zshrc new file mode 100644 index 0000000..dd4c572 --- /dev/null +++ b/roles/common/files/zshrc @@ -0,0 +1,56 @@ +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=2500 +SAVEHIST=2500 +bindkey -e +# End of lines configured by zsh-newuser-install +# The following lines were added by compinstall +#zstyle :compinstall filename '/home/casper/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall + +alias rm='rm -i' +alias cp='cp -i' +alias mv='mv -i' +alias ll='ls -lh' +alias f='find . -iname' +alias up='popd' +alias myip='curl https://lancaster.casperlefantom.net/ipclient.php' +alias beep='echo -e "\a"' +alias screenoff='xset dpms force off' +alias ltx='tmux ls' +alias atx='tmux attach -t' +alias addkey='gpg --keyserver hkp://keys.fedoraproject.org --recv-key' +alias poezio='tmux -2 new-session -s poezio -n poezio-debug "poezio --debug ~/.local/share/poezio/debug.log"' + +# Define personal variables +if [ -f $HOME/bin/setvars ]; then + . $HOME/bin/setvars +fi + +# Print fedora linux logo in interactive shell +if [ -n "$PS1" ]; then + if which linux_logo >/dev/null 2>&1; then + linux_logo -L 12 -F "Bienvenue sur l'hôte #H\n#V, Compilé #C \n#P #X #T, #R, #U" + fi +fi + +setopt hist_ignore_space +setopt autocd +setopt correctall +autoload -U promptinit +promptinit +autoload -U colors +colors + +HISTIGNORE="history:exit:logout" + +if [[ "$EUID" = "0" ]] || [[ "$USER" = 'root' ]]; then + base_prompt="%{$fg_bold[red]%}%m %{$fg_bold[blue]%}%~ %{$fg_bold[red]%}%#%{$reset_color%}%{$fg[red]%}" +else + base_prompt="%{$fg_bold[green]%}%n%{$fg_bold[blue]%}@%{$fg_bold[yellow]%}%m%{$reset_color%} %{$fg_bold[blue]%}%~ %{$fg_bold[green]%}%#%{$reset_color%}%{$fg[green]%}" +fi +PS1="$base_prompt " +PS2='suite-> ' |