diff options
author | William Carroll <wpcarro@gmail.com> | 2019-02-27T17·47+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-02-28T12·24+0000 |
commit | dba7ac236500f49b03c83ef9b8de16b114e9ab85 (patch) | |
tree | 616e05e7f6cf053f40e1f9943cd7f081e24459a4 /configs/shared/zsh/aliases.zsh | |
parent | f4c53982c70927a23276405c4bc9c02b1a59fa4c (diff) |
More fully support zsh
Support zshrc, variables, aliases, functions TODO: incorporate dumping_grounds.zsh into functions.
Diffstat (limited to 'configs/shared/zsh/aliases.zsh')
-rw-r--r-- | configs/shared/zsh/aliases.zsh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh new file mode 100644 index 000000000000..6a47085e81c0 --- /dev/null +++ b/configs/shared/zsh/aliases.zsh @@ -0,0 +1,57 @@ +# These were haphazardly ported from wpcarro/nixify, so some may be broken. +alias pbcopy="xclip -selection clipboard -i" +alias pbpaste="xclip -selection clipboard -o" +alias md="mkdir_cd" +alias ls="exa" +alias ll="exa -l" +alias la="exa -la" +alias lorem="echo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." +alias e="emacsclient --alternate-editor=${EDITOR}" +alias d="docker" +alias dps="docker ps" +alias dpsa="docker ps -a" +alias drm="docker rm" +alias drmi="docker rmi" +alias drit="docker run -it" +alias drd="docker run -d" +alias di="docker images" +alias m="mix" +alias mc="mix compile" +alias mcf="mix compile --force" +alias ism="iex -S mix" +alias tism="MIX_ENV=test iex -S mix" +alias mdg="mix deps.get" +alias mdu="mix deps.update" +alias mdup="mix docker.up" +alias cat="bat" +alias g="git" +alias git="hub" +alias gprom="git pull --rebase origin master" +alias gcan="git commit --amend --no-edit" +alias gpf="git push --force" +alias gpff="git push --force --no-verify" +alias gds="git diff --staged" +alias gfx="git commit --fixup" +alias gsh="git show" +alias gbm="git branch --merged" +alias gwip="git add . && git commit -m wip" +alias gpr="git pull-request" +alias sb="stack build" +alias se="stack exec --" +alias sc="stack clean" +alias st="stack test" +# Currently broken +# alias haddocks=''open "$(stack path --local-doc-root)/index.html"'' +alias kc="kubectl" +alias kpods="kubectl get pods" +alias knodes="kubectl get nodes" +alias kdeploys="kubectl get deployments" +alias kdns="kubectl get ing" +alias kedit="kubectl edit deployments " +alias kswitch="gcloud container clusters get-credentials " +alias nq="nix_introspect" +alias nsh="nix-shell" +alias nshp="nix-shell --pure" +alias nr="nix repl" +alias md=mkdir_cd +alias j=z # to emulate autojump; my muscle memory is hardened here |