From 619fcc1821bd74cea27bee55b7830cf83630861d Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sat, 27 Feb 2016 15:10:44 +0000 Subject: change aliases and add archey3 --- Shell/fish/aliases | 140 ++++++++++++++++++++++++++++++++ Shell/fish/config.fish | 2 +- Shell/fish/fish_history | 119 ++++++++++++++++----------- Shell/fish/functions | 139 ------------------------------- Shell/fish/functions/fish_greeting.fish | 3 + 5 files changed, 217 insertions(+), 186 deletions(-) create mode 100644 Shell/fish/aliases delete mode 100644 Shell/fish/functions create mode 100644 Shell/fish/functions/fish_greeting.fish (limited to 'Shell/fish') diff --git a/Shell/fish/aliases b/Shell/fish/aliases new file mode 100644 index 0000000..1e8b28e --- /dev/null +++ b/Shell/fish/aliases @@ -0,0 +1,140 @@ +#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 +function sdr; gqrx-alsa; end +# Disable mouse +function remouse; sudo modprobe -r bcm5974; end +function enmouse; sudo modprobe bcm5974 ; ~/bin/mousefix; end + +# Notes +function physics; vim ~/Sync/Notes/Physics/physics.txt; end +function chemistry; vim ~/Sync/Notes/Chemistry/chemistry.txt; end +function english; vim ~/Sync/Notes/English/english.txt; end +function swedish; vim ~/Sync/Notes/Swedish/swedish.txt; end + +#zombify +function zombify; sudo -u dork /home/vasko/dorknet/dork zombify; end + +function irc; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 55022 vasko@skozl.com; end +function vps; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 22 vasko@108.61.173.91; end +function sourcel; source ~/.bash_aliases; end +function ,.; fc -e -; end +function cd..; cd ..; end +function nkill; pkill -f; end +function drop; /home/vasko/drop/dropbox_uploader.sh; end +function lo; libreoffice; end +function tuner; lingot; end +function efbterm; export TERM=fbterm; end +function listd; ls -al /dev/disk/by-uuid/*; end +function py; python3 $argv; end +function scan; iwlist wlan0 scan; end +function connect; sudo iwconfig wlan0 essid; end +function home; cd /home/vasko; end +function l; ls -F $argv; end +function d; ls; end +function dm; ls | more; end +function e; cd; end +function en; cd ..; end +function n; clear; end +function s; sudo; end +function m; mv; end +function r; rm $argv; end +function md; mkdir $argv; end +function rd; rm -rf $argv; end +function c; gcp; end +function v; vim $argv; end +function sv; sudo vim $argv; end +function f; gnome-commander; end +function o; less $argv; end +function g; wget $argv; end +function x; tar -xvzf $argv; end +function a; tar -cvzf $argv; end +function i; yaourt -S $argv; end +function p; sudo pacman -Rs $argv; end +function clean; sudo pacman -Rsn (pacman -Qdtq); end +function t; optirun; end +function ts; optirun -b none nvidia-settings -c :8; end +function tc; lsof -n /dev/nvidia0; end +function endsu; exit & sudo su; end +function iso; dd if=/dev/cdrom of=~/cdrom_image.iso; end +#function glxspheres; vblank_mode=0 /opt/VirtualGL/bin/glxspheres64; end +function tglxspheres; vblank_mode=0 optirun -vv /opt/VirtualGL/bin/glxspheres64; end +function pglxspheres; vblank_mode=0 primusrun /opt/VirtualGL/bin/glxspheres64; end +function httpserve; python -m SimpleHTTPServer; end +function pi; ping google.com; end +function pl; ping 8.8.8.8; end +function def; sdcv; end + + +function aria2c; aria2c -c -x5 -s10 -m0; end + + +# Screen +function scradmin; $HOME/.tools/screen_run admin; end +function scrschool; $HOME/.ratpoison/screen_run school; end + + +# Switch layouts +function qwerty; setxkbmap us; end +function bgkey; setxkbmap bg; end +function colemak; setxkbmap uc -variant colemak ; xset r 64 ; xset r rate 170 60; end +function extmak; setxkbmap us4 -variant colemak ; xset r 64 ; xset r rate 170 60; end +function svenmak; setxkbmap us2 -variant colemak; end +function ansi; setxkbmap us3 -variant colemak; end + +# Make mount give all users right permission +function mount; mount -o gid=users,fmask=113,dmask=002';end + +# Alias FTP mount +function ftpmount; curlftpfs eu5.org ~/ftp/';end +function ftpumount; umount /home/vasko/ftp; end + +function vimrc; vim ~/.vimrc; end +function uzblrc; vim ~/.config/uzbl/config; end +function aliases; vim ~/.bash_aliases; end +function solarize; ~/.solarized/solarize; end +function rat; vim ~/.tools/ratpoisonrc.conf; end +function sx; vim ~/.config/sxhkd/sxhkdrc; end +function bs; vim ~/.config/bspwm/bspwmrc; end +function screenrc; vim ~/.ratpoison/screenrc; end +function xkb; sudo vim /usr/share/X11/xkb/symbols/vaskozl; end +function pdf; apvlv; end +function kpaint; kolourpaint; end +function gnu; vrms; end +function layout; vim .rat_layout; end +function lightdm; sudo /etc/init.d/lightdm start; end +function mountem; sudo mount -t auto /dev/sda5 /mnt/sda5; end +function grub; sudo -e /etc/default/grub; end +function reboot; sudo reboot; end + +# Games +#function 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; end +function amnesia; optirun /usr/games/Amnesia/Launcher.bin; end +function nethackterm; rxvt -bg black -fg green +tr &; end +function cfgpanel; fgpanel --fg-root=/usr/share/games/flightgear --panel=Aircraft/c172p/Panels/FGPanel_c172p.xml; end +function cfgfs; optirun fgfs --generic=socket,out,20,127.0.0.1,34200,udp,../Aircraft/c172p/Panels/FGPanel_Protocol_c172p; end +#function xonotic; cd ~/.Xonotic ; optirun ~/.Xonotic/xonotic-linux64-glx -sessionid vaskozl; end +function blizz; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Battle.net/Battle.net.exe; end +function starcraft; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support/SC2Switcher.exe; end +function lotv; wine "/home/vasko/.wine/drive_c/Program Files (x86)/StarCraft II - Legacy of the Void Beta/Support/SC2Switcher.exe"; end + +# Network tools + +#scan available networks +function wifi; sudo wpa_supplicant -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf; end + +function ipscan; nmap -sP; end +function localscan; sudo nmap -PR -sP 192.168.0.1/24; end +function wifires; modprobe ipw2100; end + +# Drawing +function mspaint; /usr/share/playonlinux/playonlinux --run "Microsoft paint"; end +function msexcel; /usr/share/playonlinux/playonlinux --run "Microsoft Excel 2010"; end +function msword; /usr/share/playonlinux/playonlinux --run "Microsoft Word 2010"; end + + + diff --git a/Shell/fish/config.fish b/Shell/fish/config.fish index 802e903..e60e419 100644 --- a/Shell/fish/config.fish +++ b/Shell/fish/config.fish @@ -1,5 +1,5 @@ #source ~/.bash_aliases -source ~/.config/fish/functions +source ~/.config/fish/aliases source ~/.config/fish/fish_prompt.fish set PATH ~/bin $PATH #set EDITOR vim diff --git a/Shell/fish/fish_history b/Shell/fish/fish_history index d211637..365b4d3 100644 --- a/Shell/fish/fish_history +++ b/Shell/fish/fish_history @@ -298,10 +298,6 @@ when: 1455621402 paths: - config.fish -- cmd: v functions - when: 1455621429 - paths: - - functions - cmd: v test.txt when: 1455621458 - cmd: vim functions @@ -719,8 +715,6 @@ when: 1455895635 paths: - io.h -- cmd: . - when: 1455895643 - cmd: gcc -o test main.c when: 1455895988 paths: @@ -1852,22 +1846,12 @@ when: 1456369012 - cmd: sudo ~/bin/hostup when: 1456369018 -- cmd: cd .config/fish/ - when: 1456369041 - paths: - - .config/fish/ -- cmd: v config.fish - when: 1456369046 - paths: - - config.fish - cmd: sh when: 1456369121 - cmd: vim ~/.config/fish/config.fish when: 1456369177 - cmd: v ~/.config/fish/config.fish when: 1456369197 -- cmd: ls - when: 1456369209 - cmd: hostup when: 1456369210 - cmd: sudo hostup @@ -2002,8 +1986,6 @@ when: 1456461006 paths: - Torrents/ -- cmd: .. - when: 1456461008 - cmd: cd Downloads/ when: 1456461009 paths: @@ -2042,8 +2024,6 @@ when: 1456584317 - cmd: xset r rate 170 60 when: 1456584635 -- cmd: exit - when: 1456584636 - cmd: pass paypal when: 1456584672 - cmd: cd .password-store/ @@ -2066,41 +2046,88 @@ when: 1456584765 - cmd: mutt when: 1456584909 -- cmd: clear - when: 1456584911 -- cmd: vps - when: 1456584913 -- cmd: cd dotfiles/ - when: 1456584918 -- cmd: git status - when: 1456584919 - cmd: git commit -a -m 'addiitions' when: 1456584930 -- cmd: git push - when: 1456584932 -- cmd: ls - when: 1456584935 - cmd: . when: 1456584939 - cmd: .. when: 1456584940 -- cmd: vps - when: 1456585015 -- cmd: vps - when: 1456585092 +- cmd: git add Shell/fish/ + when: 1456585567 + paths: + - Shell/fish/ +- cmd: git commit -a -m 'add fish' + when: 1456585574 +- cmd: git push + when: 1456585576 - cmd: exit - when: 1456585226 -- cmd: vps - when: 1456585227 + when: 1456585584 - cmd: vps - when: 1456585240 + when: 1456585586 +- cmd: cd .config/fish/ + when: 1456585700 + paths: + - .config/fish/ +- cmd: v functions + when: 1456585702 + paths: + - functions +- cmd: mv functions aliases + when: 1456585730 + paths: + - functions - cmd: cd dotfiles/ - when: 1456585547 + when: 1456585745 +- cmd: git add Shell/fish/aliases + when: 1456585752 + paths: + - Shell/fish/aliases +- cmd: function fish_greeting; archey3;end + when: 1456585772 +- cmd: funcsave fish_greeting + when: 1456585781 +- cmd: clear + when: 1456585782 +- cmd: cd Shell/fish/ + when: 1456585788 paths: - - dotfiles/ + - Shell/fish/ +- cmd: ls + when: 1456585789 +- cmd: v config.fish + when: 1456585793 + paths: + - config.fish +- cmd: v aliases + when: 1456585801 + paths: + - aliases - cmd: git status - when: 1456585549 -- cmd: git add Shell/fish/ - when: 1456585567 + when: 1456585809 +- cmd: git add aliases + when: 1456585812 paths: - - Shell/fish/ + - aliases +- cmd: git add functions + when: 1456585814 + paths: + - functions +- cmd: cd functions/ + when: 1456585815 + paths: + - functions/ +- cmd: ls + when: 1456585816 +- cmd: cat fish_greeting.fish fish_greeting.fish + when: 1456585819 + paths: + - fish_greeting.fish + - fish_greeting.fish +- cmd: exit + when: 1456585823 +- cmd: clear + when: 1456585831 +- cmd: cd dotfiles/ + when: 1456585834 + paths: + - dotfiles/ diff --git a/Shell/fish/functions b/Shell/fish/functions deleted file mode 100644 index dcc6cb7..0000000 --- a/Shell/fish/functions +++ /dev/null @@ -1,139 +0,0 @@ -#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 -function sdr; gqrx-alsa; end -# Disable mouse -function remouse; sudo modprobe -r bcm5974; end -function enmouse; sudo modprobe bcm5974 ; ~/bin/mousefix; end - -# Notes -function physics; vim ~/Sync/Notes/Physics/physics.txt; end -function chemistry; vim ~/Sync/Notes/Chemistry/chemistry.txt; end -function english; vim ~/Sync/Notes/English/english.txt; end -function swedish; vim ~/Sync/Notes/Swedish/swedish.txt; end - -#zombify -function zombify; sudo -u dork /home/vasko/dorknet/dork zombify; end - -function irc; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 55022 vasko@skozl.com; end -function vps; autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" -p 22 vasko@108.61.173.91; end -function sourcel; source ~/.bash_aliases; end -function ,.; fc -e -; end -function cd..; cd ..; end -function nkill; pkill -f; end -function drop; /home/vasko/drop/dropbox_uploader.sh; end -function lo; libreoffice; end -function tuner; lingot; end -function efbterm; export TERM=fbterm; end -function listd; ls -al /dev/disk/by-uuid/*; end -function py; python3 $argv; end -function scan; iwlist wlan0 scan; end -function connect; sudo iwconfig wlan0 essid; end -function home; cd /home/vasko; end -function l; ls -F $argv; end -function d; ls; end -function dm; ls | more; end -function e; cd; end -function en; cd ..; end -function n; clear; end -function s; sudo; end -function m; mv; end -function r; rm $argv; end -function md; mkdir $argv; end -function rd; rm -rf $argv; end -function c; gcp; end -function v; vim $argv; end -function sv; sudo vim $argv; end -function f; gnome-commander; end -function o; less $argv; end -function g; wget $argv; end -function x; tar -xvzf $argv; end -function a; tar -cvzf $argv; end -function i; yaourt -S $argv; end -function p; sudo pacman -Rs $argv; end -function clean; sudo pacman -Rsn (pacman -Qdtq); end -function t; optirun; end -function ts; optirun -b none nvidia-settings -c :8; end -function tc; lsof -n /dev/nvidia0; end -function endsu; exit & sudo su; end -function iso; dd if=/dev/cdrom of=~/cdrom_image.iso; end -#function glxspheres; vblank_mode=0 /opt/VirtualGL/bin/glxspheres64; end -function tglxspheres; vblank_mode=0 optirun -vv /opt/VirtualGL/bin/glxspheres64; end -function pglxspheres; vblank_mode=0 primusrun /opt/VirtualGL/bin/glxspheres64; end -function httpserve; python -m SimpleHTTPServer; end -function pi; ping google.com; end -function pl; ping 8.8.8.8; end -function def; sdcv; end - - -function aria2c; aria2c -c -x5 -s10 -m0; end - - -# Screen -function scradmin; $HOME/.tools/screen_run admin; end -function scrschool; $HOME/.ratpoison/screen_run school; end - - -# Switch layouts -function qwerty; setxkbmap us; end -function bgkey; setxkbmap bg; end -function colemak; setxkbmap uc -variant colemak ; xset r 64 ; xset r rate 170 60; end -function extmak; setxkbmap us4 -variant colemak ; xset r 64 ; xset r rate 170 60; end -function svenmak; setxkbmap us2 -variant colemak; end -function ansi; setxkbmap us3 -variant colemak; end - -# Make mount give all users right permission -function mount; mount -o gid=users,fmask=113,dmask=002';end - -# Alias FTP mount -function ftpmount; curlftpfs eu5.org ~/ftp/';end -function ftpumount; umount /home/vasko/ftp; end - -function vimrc; vim ~/.vimrc; end -function uzblrc; vim ~/.config/uzbl/config; end -function aliases; vim ~/.bash_aliases; end -function solarize; ~/.solarized/solarize; end -function rat; vim ~/.tools/ratpoisonrc.conf; end -function sx; vim ~/.config/sxhkd/sxhkdrc; end -function bs; vim ~/.config/bspwm/bspwmrc; end -function screenrc; vim ~/.ratpoison/screenrc; end -function xkb; sudo vim /usr/share/X11/xkb/symbols/vaskozl; end -function pdf; apvlv; end -function kpaint; kolourpaint; end -function gnu; vrms; end -function layout; vim .rat_layout; end -function lightdm; sudo /etc/init.d/lightdm start; end -function mountem; sudo mount -t auto /dev/sda5 /mnt/sda5; end -function grub; sudo -e /etc/default/grub; end -function reboot; sudo reboot; end - -# Games -#function 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; end -function amnesia; optirun /usr/games/Amnesia/Launcher.bin; end -function nethackterm; rxvt -bg black -fg green +tr &; end -function cfgpanel; fgpanel --fg-root=/usr/share/games/flightgear --panel=Aircraft/c172p/Panels/FGPanel_c172p.xml; end -function cfgfs; optirun fgfs --generic=socket,out,20,127.0.0.1,34200,udp,../Aircraft/c172p/Panels/FGPanel_Protocol_c172p; end -#function xonotic; cd ~/.Xonotic ; optirun ~/.Xonotic/xonotic-linux64-glx -sessionid vaskozl; end -function blizz; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Battle.net/Battle.net.exe; end -function starcraft; wine ~/.wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support/SC2Switcher.exe; end -function lotv; wine "/home/vasko/.wine/drive_c/Program Files (x86)/StarCraft II - Legacy of the Void Beta/Support/SC2Switcher.exe"; end - -# Network tools - -#scan available networks -function wifi; sudo wpa_supplicant -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf; end - -function ipscan; nmap -sP; end -function localscan; sudo nmap -PR -sP 192.168.0.1/24; end -function wifires; modprobe ipw2100; end - -# Drawing -function mspaint; /usr/share/playonlinux/playonlinux --run "Microsoft paint"; end -function msexcel; /usr/share/playonlinux/playonlinux --run "Microsoft Excel 2010"; end -function msword; /usr/share/playonlinux/playonlinux --run "Microsoft Word 2010"; end - - diff --git a/Shell/fish/functions/fish_greeting.fish b/Shell/fish/functions/fish_greeting.fish new file mode 100644 index 0000000..5ff1d4a --- /dev/null +++ b/Shell/fish/functions/fish_greeting.fish @@ -0,0 +1,3 @@ +function fish_greeting + archey3; +end -- cgit v1.2.3-54-g00ecf