Browse Source

refactor: remove unneeded zsh functions

main
Roxie Gibson 11 months ago
parent
commit
0ec0388019
No known key found for this signature in database
5 changed files with 8 additions and 16 deletions
  1. +7
    -0
      .chezmoi.toml.tmpl
  2. +1
    -0
      .gitignore
  3. +0
    -6
      dot_config/zsh/aliases.zsh
  4. +0
    -8
      dot_config/zsh/functions.zsh
  5. +0
    -2
      dot_config/zsh/golang.zsh

+ 7
- 0
.chezmoi.toml.tmpl View File

@@ -0,0 +1,7 @@
{{- $email := promptStringOnce . "email" "Email address" -}}

[data]
email = {{ $email | quote }}

[git]
autoCommit = true

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
.directory

+ 0
- 6
dot_config/zsh/aliases.zsh View File

@@ -1,9 +1,3 @@
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# vscode alias
alias "c"="$(which code) ./"
# ls stuff
alias ls="ls --color=auto"
alias la="ls -Ah"

+ 0
- 8
dot_config/zsh/functions.zsh View File

@@ -3,14 +3,6 @@ function mkd() {
mkdir -p "$argv";cd "$argv";
}

# Wraps opening a tomb with removing swap and readding it later (hard coded for Roxie's method of swapfiles)
function tombs() {
sudo swapoff -a
tomb $@
sudo swapon /swapfile
swapon --show
}

totp_uri() {
# Args are Secret - Username - Provider
echo "otpauth://totp/${2}?secret=${1}&issuer=${3}"

+ 0
- 2
dot_config/zsh/golang.zsh View File

@@ -1,2 +0,0 @@
export GOPATH="$HOME/code/go" # Generic for now but maybe customise with direnv?
export GO111MODULE="on"

Loading…
Cancel
Save