aboutsummaryrefslogtreecommitdiffstats
path: root/roles/zsh
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2023-09-29 09:46:31 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2023-09-29 09:46:31 -0400
commit7485ee324601055fff36a6e5b4362bbd134ded1e (patch)
treec29ec3b25b54d7a40fdbb1e20ec03bf18fd4a57b /roles/zsh
parentAdd brewfile (diff)
downloaddotfiles-7485ee324601055fff36a6e5b4362bbd134ded1e.zip
Rework for mac
Diffstat (limited to 'roles/zsh')
-rwxr-xr-xroles/zsh/files/.zshrc86
-rwxr-xr-xroles/zsh/tasks/main.yaml38
2 files changed, 0 insertions, 124 deletions
diff --git a/roles/zsh/files/.zshrc b/roles/zsh/files/.zshrc
deleted file mode 100755
index 8d25a49..0000000
--- a/roles/zsh/files/.zshrc
+++ /dev/null
@@ -1,86 +0,0 @@
-autoload -Uz vcs_info
-zstyle ":vcs_info:*" enable git svn
-zstyle ':vcs_info:git:*' formats '%F{green}(%b)%f '
-precmd() {
- vcs_info
-}
-setopt prompt_subst
-NEWLINE=$'\n'
-PROMPT=' %2~ ${vcs_info_msg_0_}%# '
-
-export HISTFILE=~/.zhistory
-export HISTSIZE=100000
-export SAVEHIST=100000
-
-export EDITOR="nvim"
-export BROWSER="firefox"
-export PAGER="less"
-
-export GPG_TTY=$(tty)
-
-export SRC_DIR="$HOME/src"
-export BIN_DIR="$HOME/bin"
-
-export PATH="$HOME/.poetry/bin:$PATH"
-export PATH="$GOPATH/bin:$PATH"
-export PATH="$GOROOT/bin:$PATH"
-export PATH="$HOME/.local/bin:$PATH"
-export PATH="$BIN_DIR:$PATH"
-
-export GOPATH="$SRC_DIR/go"
-export GOBIN="$SRC_DIR/go/bin"
-
-export PYENV_ROOT="$HOME/.pyenv"
-export PATH="$PYENV_ROOT/bin:$PATH"
-command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
-eval "$(pyenv init -)"
-
-export NVM_DIR="$HOME/.nvm"
-[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
-
-alias gs="git status"
-alias gc="git commit"
-alias ga="git add"
-alias gd="git diff"
-alias gds="git diff --staged"
-alias gp="git push"
-alias gpo='git push origin'
-alias gplrb='git pull --rebase'
-alias gpl="git pull"
-alias gl='git log'
-alias gch="git checkout"
-alias gcb='git checkout -b'
-alias gv='git log --graph --decorate --oneline'
-
-alias h="history 25"
-alias j="jobs -l"
-alias l="ls -alG"
-alias o="xdg-open ."
-alias open="xdg-open"
-
-alias vi="nvim"
-alias vim="nvim"
-
-# "Compile C Program"
-#
-# $1: Program Name
-# $2: Output File (default: a.out)
-# $3: C Standard (default: c11)
-#
-# Example: ccp main.c main c99
-ccp() {
- local prog_name=$1
- local output_file=${2:a.out}
- local std=${3:c11}
-
- cc -Wall -W -pedantic -ansi -std=$std -o $output_file $prog_name
-}
-
-memcheck() {
- G_DEBUG=always-malloc valgrind --tool=memcheck --leak-check=full --show-reachable=yes -s $1
-}
-
-gocover() {
- t="/tmp/go-cover.$$.tmp"
- go test -coverprofile=$t $@ && go tool cover -html=$t && unlink $t
-}
diff --git a/roles/zsh/tasks/main.yaml b/roles/zsh/tasks/main.yaml
deleted file mode 100755
index fe0c039..0000000
--- a/roles/zsh/tasks/main.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
----
-- name: Install packages
- become: yes
-
- dnf:
- name: "{{ item.key }}"
- state: "{{ item.value.state | default('present') }}"
-
- with_dict: "{{dnf}}"
- vars:
- dnf:
- fzf:
- git:
- jq:
- jc:
- zsh:
-
-- name: Ensure shell is default for user
- vars:
- current_user: "{{ ansible_user_id }}"
- become: yes
- user:
- name: "{{ current_user }}"
- shell: /usr/bin/zsh
-
-- name: Link configuration
- file:
- src: "{{ role_path }}/files/.zshrc"
- dest: "{{ lookup('env', 'HOME') }}/.zshrc"
- state: link
-
-- name: Create folders
- file:
- path: "{{item}}"
- state: directory
- loop:
- - "{{ lookup('env', 'HOME') }}/src"
- - "{{ lookup('env', 'HOME') }}/bin"