aboutsummaryrefslogtreecommitdiff
path: root/Shell
diff options
context:
space:
mode:
Diffstat (limited to 'Shell')
-rw-r--r--Shell/README.md5
-rw-r--r--Shell/bash_aliases144
-rw-r--r--Shell/bashrc123
-rw-r--r--Shell/zshrc38
4 files changed, 310 insertions, 0 deletions
diff --git a/Shell/README.md b/Shell/README.md
new file mode 100644
index 0000000..614b3e7
--- /dev/null
+++ b/Shell/README.md
@@ -0,0 +1,5 @@
+```
+ln -s ~/dotfiles/Shell/bash_aliases ~/.bash_aliases
+ln -s ~/dotfiles/Shell/bashrc ~/.bashrc
+ln -s ~/dotfiles/Shell/zshrc ~/.zshrc
+```
diff --git a/Shell/bash_aliases b/Shell/bash_aliases
new file mode 100644
index 0000000..2c25e60
--- /dev/null
+++ b/Shell/bash_aliases
@@ -0,0 +1,144 @@
+#module for mouse is bcm5974
+# pacat /dev/urandom > padsp
+# for volume over 150: pactl set-sink-volume 0 150% (or volume 150%)
+#if you wanna change timezone just copy one of /usr/share/zoneinfo/place to /etc/localtime
+# awesome perl echo 'one two three'| perl -lne 'print $1 if /one(.*)three/'
+
+# SDR
+alias sdr='gqrx-alsa'
+# Disable mouse
+alias remouse='sudo modprobe -r bcm5974'
+alias enmouse='sudo modprobe bcm5974 & ~/bin/mousefix'
+
+# Notes
+alias physics='vim ~/Sync/Notes/Physics/physics.txt'
+alias chemistry='vim ~/Sync/Notes/Chemistry/chemistry.txt'
+alias english='vim ~/Sync/Notes/English/english.txt'
+alias swedish='vim ~/Sync/Notes/Swedish/swedish.txt'
+
+#zombify
+alias zombify='sudo -u dork /home/vasko/dorknet/dork zombify'
+
+alias irc='autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 55022 vasko@skozl.com'
+alias vps='autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 22 vasko@108.61.173.91'
+alias sourcel='source ~/.bash_aliases'
+alias ,.='fc -e -'
+alias cd..='cd ..'
+alias nkill='pkill -f'
+alias drop='/home/vasko/drop/dropbox_uploader.sh'
+alias lo='libreoffice'
+alias tuner='lingot'
+alias efbterm='export TERM=fbterm'
+alias listd='ls -al /dev/disk/by-uuid/*'
+alias py='python3'
+alias scan='iwlist wlan0 scan'
+alias connect='sudo iwconfig wlan0 essid'
+alias home='cd /home/vasko'
+alias l='ls -F'
+alias d='ls'
+alias dm='ls | more'
+alias e='cd'
+alias en='cd ..'
+alias n='clear'
+alias s='sudo'
+alias m='mv'
+alias r='rm'
+alias md='mkdir'
+alias rd='rm -rf'
+alias c='gcp'
+alias v='vim'
+alias sv='sudo vim'
+alias f='gnome-commander'
+alias o='less'
+alias g='wget'
+alias x='tar -xvzf'
+alias a='tar -cvzf'
+alias i='yaourt -S'
+alias p='sudo pacman -Rs'
+alias clean='sudo pacma -Rsn $(pacman -Qdtq)'
+alias t='optirun'
+alias ts='optirun -b none nvidia-settings -c :8'
+alias tc='lsof -n /dev/nvidia0'
+alias endsu='exit & sudo su'
+alias iso='dd if=/dev/cdrom of=~/cdrom_image.iso'
+#alias glxspheres='vblank_mode=0 /opt/VirtualGL/bin/glxspheres64'
+alias tglxspheres='vblank_mode=0 optirun -vv /opt/VirtualGL/bin/glxspheres64'
+alias pglxspheres='vblank_mode=0 primusrun /opt/VirtualGL/bin/glxspheres64'
+alias httpserve='python -m SimpleHTTPServer'
+alias pi='ping google.com'
+alias pl='ping 8.8.8.8'
+alias def='sdcv'
+
+
+alias aria2c='aria2c -c -x5 -s10 -m0'
+
+
+#msf
+alias msfconsole="msfconsole --quiet -x \"db_connect ${USER}@msf\""
+
+# Screen
+alias scradmin='$HOME/.tools/screen_run admin'
+alias scrschool='$HOME/.ratpoison/screen_run school'
+
+
+# Switch layouts
+alias qwerty='setxkbmap us'
+alias bgkey='setxkbmap bg'
+alias colemak='setxkbmap uc -variant colemak && xset r 64 && xset r rate 170 60'
+alias extmak='setxkbmap us4 -variant colemak && xset r 64 && xset r rate 170 60'
+alias svenmak='setxkbmap us2 -variant colemak'
+alias ansi='setxkbmap us3 -variant colemak'
+
+# Make mount give all users right permission
+alias mount='mount -o gid=users,fmask=113,dmask=002'
+
+# Alias FTP mount
+alias ftpmount='curlftpfs eu5.org ~/ftp/'
+alias ftpumount='umount /home/vasko/ftp'
+
+alias desk='cd ~/Desktop'
+alias cbb='cat /proc/acpi/bbswitch'
+alias vimrc='vim ~/.vimrc'
+alias uzblrc='vim ~/.config/uzbl/config'
+alias aliases='vim ~/.bash_aliases'
+alias solarize='~/.solarized/solarize'
+alias rat='vim ~/.tools/ratpoisonrc.conf'
+alias sx='vim ~/.config/sxhkd/sxhkdrc'
+alias bs='vim ~/.config/bspwm/bspwmrc'
+alias screenrc='vim ~/.ratpoison/screenrc'
+alias xkb='sudo vim /usr/share/X11/xkb/symbols/us'
+alias pdf='apvlv'
+alias kpaint='kolourpaint'
+alias gnu='vrms'
+alias layout='vim .rat_layout'
+alias lightdm='sudo /etc/init.d/lightdm start'
+alias mountem='sudo mount -t auto /dev/sda5 /mnt/sda5'
+alias grub='sudo -e /etc/default/grub'
+alias reboot='sudo reboot'
+
+# Games
+#alias minecraft='optirun java -Xmx1024M -Xms1024M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=2 -jar ~/.minecraft/launcher.jar'
+alias amnesia='optirun /usr/games/Amnesia/Launcher.bin'
+alias nethackterm='rxvt -bg black -fg green +tr &'
+alias cfgpanel=' fgpanel --fg-root=/usr/share/games/flightgear --panel=Aircraft/c172p/Panels/FGPanel_c172p.xml'
+alias cfgfs='optirun fgfs --generic=socket,out,20,127.0.0.1,34200,udp,../Aircraft/c172p/Panels/FGPanel_Protocol_c172p'
+#alias xonotic='cd ~/.Xonotic && optirun ~/.Xonotic/xonotic-linux64-glx -sessionid vaskozl'
+alias blizzard='wine /mnt/sdb6/Games/StarCraft\ II/StarCraft\ II.exe'
+alias starcraft='primusrun wine /mnt/sdb6/Games/StarCraft\ II/Support/SC2Switcher.exe'
+alias starbound="~/games/starbound/linux64/launch_starbound.sh"
+
+# Network tools
+
+#scan available networks
+alias wifi='sudo wpa_supplicant -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf'
+
+alias ipscan='nmap -sP'
+alias localscan='sudo nmap -PR -sP 192.168.0.1/24'
+alias wifires='modprobe ipw2100'
+
+# Drawing
+alias mspaint='/usr/share/playonlinux/playonlinux --run "Microsoft paint"'
+alias msexcel='/usr/share/playonlinux/playonlinux --run "Microsoft Excel 2010"'
+alias msword='/usr/share/playonlinux/playonlinux --run "Microsoft Word 2010"'
+
+
diff --git a/Shell/bashrc b/Shell/bashrc
new file mode 100644
index 0000000..fed088c
--- /dev/null
+++ b/Shell/bashrc
@@ -0,0 +1,123 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+# don't put duplicate lines or lines starting with space in the history.
+# See bash(1) for more options
+HISTCONTROL=ignoreboth
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=1000
+HISTFILESIZE=2000
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# If set, the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+#shopt -s globstar
+
+# make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# set a fancy prompt (non-color, unless we know we "want" color)
+case "$TERM" in
+ xterm-color) color_prompt=yes;;
+esac
+
+# uncomment for a colored prompt, if the terminal has the capability; turned
+# off by default to not distract the user: the focus in a terminal window
+# should be on the output of commands, not on the prompt
+#force_color_prompt=yes
+
+if [ -n "$force_color_prompt" ]; then
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+ # We have color support; assume it's compliant with Ecma-48
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+ # a case would tend to support setf rather than setaf.)
+ color_prompt=yes
+ else
+ color_prompt=
+ fi
+fi
+
+if [ "$color_prompt" = yes ]; then
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+else
+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+fi
+unset color_prompt force_color_prompt
+
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
+ ;;
+*)
+ ;;
+esac
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+ alias ls='ls --color=auto'
+ #alias dir='dir --color=auto'
+ #alias vdir='vdir --color=auto'
+
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+# some more ls aliases
+alias ll='ls -alF'
+alias la='ls -A'
+alias l='ls -CF'
+
+# Add an "alert" alias for long running commands. Use like so:
+# sleep 10; alert
+alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+if [ -f ~/.bash_aliases ]; then
+ . ~/.bash_aliases
+fi
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+fi
+
+shopt -s autocd
+shopt -s cdspell
+
+export GPGKEY="B54608CC"
+export PATH="$HOME/bin:$HOME/bin/perl6:$PATH"
+export EDITOR="vim"
+export PENTADACTYL_RUNTIME="$HOME/.pentadactyl"
+export LD_LIBRARY_PATH=/usr/local/lib
diff --git a/Shell/zshrc b/Shell/zshrc
new file mode 100644
index 0000000..455185b
--- /dev/null
+++ b/Shell/zshrc
@@ -0,0 +1,38 @@
+# Lines configured by zsh-newuser-install
+HISTFILE=~/.histfile
+HISTSIZE=10000
+SAVEHIST=10000
+setopt appendhistory autocd extendedglob correct
+unsetopt beep
+bindkey -v
+zstyle ':completion:*' menu select
+#zstyle ':completion:*' format '%BCompleting %d%b'
+# End of lines configured by zsh-newuser-install
+# The following lines were added by compinstall
+zstyle :compinstall filename '/home/vasko/.zshrc'
+
+autoload -Uz compinit
+compinit
+zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
+ 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
+# End of lines added by compinstall
+
+source ~/.bash_aliases
+
+#export PS1='%n@%m:%~%% '
+
+export GPGKEY="895134C5"
+export PATH="$HOME/bin:$PATH"
+export EDITOR="vim"
+export BROWSER="~/.ratposon/firesend"
+export LD_LIBRARY_PATH=/usr/local/lib
+export wiki_browser='firefox'
+
+PROMPT="%{$fg_no_bold[yellow]%}%1~ %{$reset_color%}☢ "
+RPROMPT="[%{$fg_no_bold[yellow]%}%?%{$reset_color%}]"
+
+
+
+#fortune -s | cowsay -f $(ls /usr/share/cows/ | shuf -n1)
+archey3
+