Last active
November 6, 2019 09:22
-
-
Save bootandy/b4f33a6c8bce8e5cc5af to your computer and use it in GitHub Desktop.
.zshrc file uses oh-my-zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Path to your oh-my-zsh installation. | |
| export ZSH="/home/andy/.oh-my-zsh" | |
| alias python=python3 | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="tjkirch" | |
| # Plugins zsh-syntax-highlightin is downloaded separately | |
| plugins=(git python zsh-syntax-highlighting) | |
| export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games::/home/andy/.local/bin/::/home/andy/.cargo/bin" | |
| # export MANPATH="/usr/local/man:$MANPATH" | |
| export RUST_SRC_PATH="/home/andy/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src" | |
| source $ZSH/oh-my-zsh.sh | |
| export LANG=en_GB.UTF-8 | |
| export EDITOR='vim' | |
| # ssh | |
| export SSH_KEY_PATH="~/.ssh/id_rsa" | |
| # We use UK keyboard. Remap capslock -> ctrl | |
| setxkbmap -layout gb -option ctrl:nocaps | |
| # Git stuff | |
| alias gs="git status" | |
| alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
| alias gb="git branch" | |
| alias gp="git push" | |
| alias gch="git commit -m 'hack'" | |
| alias skype="skypeforlinux" | |
| # virtual env wrapper: | |
| export WORKON_HOME=~/dev/envs/ | |
| # source /usr/local/bin/virtualenvwrapper.sh | |
| export HISTFILESIZE=r90000 | |
| # if dual monitors break again: | |
| # xrandr --output DVI-0 --auto --primary --left-of DVI-1 | |
| # .Xresources - For changing dpi of screen | |
| # For steam: | |
| # xrandr --output DP-3 --mode 1920x1080 --scale 1.67x1.67 --output eDP-1 --mode 3200x1800 --scale 1x1 | |
| alias wifi="nmcli dev wifi" | |
| # zsh ignores /etc/inputrc so lets add them here: | |
| bindkey '\eOH' beginning-of-line | |
| bindkey '\eOF' end-of-line | |
| bindkey '\e[[2~' overwrite-mode | |
| bindkey '\e[[3~' delete-char | |
| echo "To map nfs drive:" | |
| echo "sudo mount -o soft,intr,rsize=8192,wsize=8192 192.168.0.15:/nfs ~/nfs/" | |
| #learn linux time: | |
| echo "----------------------------" | |
| echo "Did you know that: try random for more"; whatis $(ls /bin | shuf -n 1) | |
| echo "----------------------------" | |
| alias random='cowsay -f $(ls /usr/share/cowsay/cows | shuf -n 1 | cut -d. -f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1)' | |
| echo "To add network disk:" | |
| echo "sudo mount -o soft,intr,rsize=8192,wsize=8192 192.168.0.15:/nfs ~/nfs/" | |
| alias work="echo 'cd /etc/openvpn \nsudo openvpn --config config.ovpn --script-security 2\nssh [email protected]'" | |
| echo "To chromecast:" | |
| echo "mkchromecast --video -i FILENAME" | |
| echo "See more: https://www.omgubuntu.co.uk/2017/05/mkchromecast-cast-video-from-ubuntu" | |
| alias sound="alsamixer" | |
| alias l="exa" | |
| # Reapply xmodmap: | |
| xmodmap ~/.Xmodmap | |
| xmodmap ~/.Xmodmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment