1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/zsh/.zshrc

129 lines
4.6 KiB
Bash
Raw Normal View History

2019-01-20 15:13:11 +00:00
# Ifkyou come from bash you might have to change your $PATH.
2016-11-09 13:09:59 +00:00
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Stop tmux bitching about 256 colours
2019-01-20 15:13:11 +00:00
TERM="xterm-256color"
2016-11-09 13:09:59 +00:00
# Path to your oh-my-zsh installation.
2019-01-20 15:13:11 +00:00
ZSH="/home/alrayyes/.oh-my-zsh"
2016-11-09 13:09:59 +00:00
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
2017-05-14 23:39:03 +00:00
#ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel9k/powerlevel9k"
2016-11-09 13:09:59 +00:00
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(aws archlinux bower common-aliases composer docker git git-flow pass sudo symfony2 systemd tmux fzf gitignore )
2016-11-09 13:09:59 +00:00
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
2017-01-03 12:19:07 +00:00
2019-01-20 15:13:11 +00:00
# nvim alias
alias vim="nvim"
2019-04-02 09:54:23 +00:00
alias vi="nvim"
2019-01-20 15:13:11 +00:00
2019-03-19 13:29:07 +00:00
# ls alias
alias ls="lsd"
alias l="lsd -al"
2019-03-20 13:54:32 +00:00
# vifm alias
alias vifm="vifmrun"
2018-04-27 11:59:53 +00:00
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://share.higherlearning.eu/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://share.higherlearning.eu/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
2018-04-27 14:40:47 +00:00
transferats() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://share.andthensome.nl/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://share.andthensome.nl/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
2018-04-27 11:59:53 +00:00
2017-02-14 16:04:27 +00:00
# Emberjs settings
2019-03-19 13:29:07 +00:00
export PATH="$PATH:/home/alrayyes/.config/yarn/global/node_modules/.bin:/home/alrayyes/.scripts"
2017-02-14 16:04:27 +00:00
2016-12-30 20:07:59 +00:00
# Set GPG TTY
2019-01-20 15:13:11 +00:00
export GPG_TTY="$(tty)"
2016-12-30 20:07:59 +00:00
2017-05-10 19:34:40 +00:00
# Set default browser
2019-01-20 15:13:11 +00:00
export BROWSER="firefox"
# Set default terminal
export TERMINAL="st"
2017-05-10 19:34:40 +00:00
2018-03-27 13:07:23 +00:00
# pkg editor
export VISUAL="vim"
2019-01-20 15:13:11 +00:00
# Enable password store extensions
export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
2016-12-30 20:07:59 +00:00
# Refresh gpg-agent tty in case user switches into an X session
gpg-connect-agent updatestartuptty /bye >/dev/null
2016-12-29 13:17:16 +00:00
neofetch