Giter VIP home page Giter VIP logo

dotfiles's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @ankr
  • ๐Ÿ‘€ Iโ€™m interested in ...
  • ๐ŸŒฑ Iโ€™m currently learning ...
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on ...
  • ๐Ÿ“ซ How to reach me ...

dotfiles's People

Contributors

ankr avatar emolr avatar kimegede avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mrefferdk

dotfiles's Issues

Vim mouse enabled

How do you mark something and copy it to your clipboard, and not only to vim's clipboard?
When marking something, vim takes it as I'm in "-- Visual --" mode.

Ubuntu bash error

Getting this error, when installed on Ubuntu

root @ xxxxx  [ ~ ] [ 20:13:25 ]
-> bash
bash: /etc/bash_completion.d/apt: line 39: syntax error near unexpected token `('
bash: /etc/bash_completion.d/apt: line 39: `        -@(c|-config-file))'
bash: /etc/bash_completion.d/apt-build: line 20: syntax error near unexpected token `('
bash: /etc/bash_completion.d/apt-build: line 20: `            @(install|source|info))'
bash: /etc/bash_completion.d/aptitude: line 43: syntax error near unexpected token `('
bash: /etc/bash_completion.d/aptitude: line 43: `           @(install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade|download|show|changelog|why|why-not|build-dep))'
bash: /etc/bash_completion.d/aspell: line 28: syntax error near unexpected token `('
bash: /etc/bash_completion.d/aspell: line 28: `        -c|-p|check|--@(conf|personal|repl|per-conf))'
bash: /etc/bash_completion.d/bash-builtins: line 108: syntax error near unexpected token `('
bash: /etc/bash_completion.d/bash-builtins: line 108: `        -@(p|r))'
bash: /etc/bash_completion.d/bittorrent: line 14: syntax error near unexpected token `('
bash: /etc/bash_completion.d/bittorrent: line 14: `        --@(responsefile|saveas))'
bash: /etc/bash_completion.d/bluez-utils: line 82: syntax error near unexpected token `('
bash: /etc/bash_completion.d/bluez-utils: line 82: `            @(name|info|dc|rssi|lq|afh|auth|key|clkoff|lst))'
bash: /etc/bash_completion.d/brctl: line 30: syntax error near unexpected token `('
bash: /etc/bash_completion.d/brctl: line 30: `                @(add|del)if)'
bash: /etc/bash_completion.d/cfengine: line 27: syntax error near unexpected token `('
bash: /etc/bash_completion.d/cfengine: line 27: `        -@(f|-file))'
bash: /etc/bash_completion.d/chkconfig: line 15: syntax error near unexpected token `('
bash: /etc/bash_completion.d/chkconfig: line 15: `    @(?(--level=)[1-6]|--@(list|add|del|override)))'
bash: /etc/bash_completion.d/cpan2dist: line 20: syntax error near unexpected token `('
bash: /etc/bash_completion.d/cpan2dist: line 20: `        --@(banlist|ignorelist|modulelist|logfile))'
bash: /etc/bash_completion.d/cpio: line 25: syntax error near unexpected token `('
bash: /etc/bash_completion.d/cpio: line 25: `        -@(E|F|I|-?(pattern-)file))'
bash: /etc/bash_completion.d/cvs: line 47: syntax error near unexpected token `('
bash: /etc/bash_completion.d/cvs: line 47: `            @(ad?(d)|new))'
bash: /etc/bash_completion.d/dhclient: line 12: syntax error near unexpected token `('
bash: /etc/bash_completion.d/dhclient: line 12: `        -@(cf|lf|pf|sf))'
bash: /etc/bash_completion.d/dict: line 21: syntax error near unexpected token `('
bash: /etc/bash_completion.d/dict: line 21: `        -@(h|--host))'
bash: /etc/bash_completion.d/dpkg: line 43: syntax error near unexpected token `('
bash: /etc/bash_completion.d/dpkg: line 43: `        -@(c|i|A|I|f|e|x|X|W|-@(install|unpack|record-avail|contents|info|fsys-tarfile|field|control|extract|show)))'
bash: /etc/bash_completion.d/dselect: line 17: syntax error near unexpected token `('
bash: /etc/bash_completion.d/dselect: line 17: `        -@(D|debug))'
bash: /etc/bash_completion.d/dsniff: line 75: syntax error near unexpected token `('
bash: /etc/bash_completion.d/dsniff: line 75: `        -@(r|w|f))'
bash: /etc/bash_completion.d/findutils: line 15: syntax error near unexpected token `('
bash: /etc/bash_completion.d/findutils: line 15: `    -@(max|min)depth)'
bash: /etc/bash_completion.d/freeciv: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/freeciv: line 13: `        -@(f|g|l|r|-file|-log|-gamelog|-read))'
bash: [: too many arguments
bash: /etc/bash_completion.d/genisoimage: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/genisoimage: line 13: `        -@(o|abstract|biblio|check-session|copyright|log-file|root-info|prep-boot|*-list))'
bash: /etc/bash_completion.d/gkrellm: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/gkrellm: line 13: `        -@(t|-theme))'
bash: /etc/bash_completion.d/gpg: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/gpg: line 13: `        -@(s|-sign|-clearsign|-decrypt-files|-load-extension))'
bash: /etc/bash_completion.d/gpg2: line 17: syntax error near unexpected token `('
bash: /etc/bash_completion.d/gpg2: line 17: `        -@(s|-sign|-clearsign|-options|-decrypt))'
bash: /etc/bash_completion.d/heimdal: line 53: syntax error near unexpected token `('
bash: /etc/bash_completion.d/heimdal: line 53: `        -@(s|k|-@(srv|key)tab))'
bash: /etc/bash_completion.d/iconv: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/iconv: line 13: `        -@(f|t|-@(from|to)-code))'
bash: /etc/bash_completion.d/imagemagick: line 106: syntax error near unexpected token `('
bash: /etc/bash_completion.d/imagemagick: line 106: `        -@(mask|profile|texture|tile|write))'
bash: /etc/bash_completion.d/java: line 145: syntax error near unexpected token `('
bash: /etc/bash_completion.d/java: line 145: `        -@(cp|classpath))'
bash: [: =: unary operator expected
bash: /etc/bash_completion.d/ldapvi: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/ldapvi: line 13: `        -@(h|-host))'
bash: /etc/bash_completion.d/lilo: line 19: syntax error near unexpected token `('
bash: /etc/bash_completion.d/lilo: line 19: `        -@(C|i|m|s|S))'
bash: /etc/bash_completion.d/lvm: line 87: syntax error near unexpected token `('
bash: /etc/bash_completion.d/lvm: line 87: `        -@(o|O|-options|-sort))'
bash: /etc/bash_completion.d/lzop: line 44: syntax error near unexpected token `('
bash: /etc/bash_completion.d/lzop: line 44: `        --@(@(de|un)compress|extract|list|ls|info|test))'
bash: /etc/bash_completion.d/mailman: line 37: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mailman: line 37: `        -@(r|d|-regular-members-file|-digest-members-file))'
bash: /etc/bash_completion.d/make: line 15: syntax error near unexpected token `('
bash: /etc/bash_completion.d/make: line 15: `        -@(f|o|W|-@(?(make|old-|new-)file|assume-@(old|new)|what-if)))'
bash: [: too many arguments
bash: [: too many arguments
bash: /etc/bash_completion.d/mcrypt: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mcrypt: line 13: `        -@(g|-openpgp-z))'
bash: /etc/bash_completion.d/mdadm: line 10: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mdadm: line 10: `            -@(C|-create))'
bash: /etc/bash_completion.d/minicom: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/minicom: line 13: `        -@(a|c))'
bash: /etc/bash_completion.d/mkinitrd: line 15: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mkinitrd: line 15: `        --@(preload|with|builtin))'
bash: /etc/bash_completion.d/mock: line 28: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mock: line 28: `        -@(h|-help|-copy@(in|out)|-arch|D|-define|-with?(out)|-uniqueext|-rpmbuild_timeout|-sources|-cwd))'
bash: /etc/bash_completion.d/modules: line 61: syntax error near unexpected token `('
bash: /etc/bash_completion.d/modules: line 61: `            @(add|display|help|load|show|whatis))'
bash: /etc/bash_completion.d/mplayer: line 22: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mplayer: line 22: `        -@([av][cfo]|[av]fm|vop|fstype|demuxer|o[av]c|of|profile))'
bash: /etc/bash_completion.d/msynctool: line 30: syntax error near unexpected token `('
bash: /etc/bash_completion.d/msynctool: line 30: `        --@(configure|@(add|del|show)group|sync|addmember))'
bash: /etc/bash_completion.d/munin-node: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/munin-node: line 13: `        --@(config|sconffile))'
bash: /etc/bash_completion.d/mutt: line 117: syntax error near unexpected token `('
bash: /etc/bash_completion.d/mutt: line 117: `        -@(a|f|F|H|i))'
bash: /etc/bash_completion.d/net-tools: line 51: syntax error near unexpected token `('
bash: /etc/bash_completion.d/net-tools: line 51: `        -@(F|A|-advertise|-fixed-speed))'
bash: /etc/bash_completion.d/openldap: line 35: syntax error near unexpected token `('
bash: /etc/bash_completion.d/openldap: line 35: `        -@(f|y))'
bash: /etc/bash_completion.d/openssl: line 58: syntax error near unexpected token `('
bash: /etc/bash_completion.d/openssl: line 58: `            -@(CA|CAfile|CAkey|CAserial|cert|certfile|config|content|dcert|dkey|dhparam|extfile|in|inkey|kfile|key|keyout|out|oid|prvrify|rand|recip|revoke|sess_in|sess_out|spkac|sign|signkey|signer|signature|ss_cert|untrusted|verify))'
bash: /etc/bash_completion.d/pkg-config: line 15: syntax error near unexpected token `('
bash: /etc/bash_completion.d/pkg-config: line 15: `        --@(?(define-)variable|@(atleast?(-pkgconfig)|exact|max)-version))'
bash: [: =: unary operator expected
bash: /etc/bash_completion.d/python: line 26: syntax error near unexpected token `('
bash: /etc/bash_completion.d/python: line 26: `    !(python|-?))'
bash: /etc/bash_completion.d/qemu: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/qemu: line 13: `        -@(fd[ab]|hd[abcd]|cdrom|option-rom|kernel|initrd|bootp|pidfile|loadvm|mtdblock|sd|pflash|bios))'
bash: /etc/bash_completion.d/quota-tools: line 118: syntax error near unexpected token `('
bash: /etc/bash_completion.d/quota-tools: line 118: `        -@(f|-filesystem))'
bash: /etc/bash_completion.d/resolvconf: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/resolvconf: line 13: `        -@(a|d))'
bash: /etc/bash_completion.d/rpm: line 90: syntax error near unexpected token `('
bash: /etc/bash_completion.d/rpm: line 90: `        --@(@(db|exclude)path|prefix|relocate|root))'
bash: /etc/bash_completion.d/rsync: line 17: syntax error near unexpected token `('
bash: /etc/bash_completion.d/rsync: line 17: `    --@(config|password-file|include-from|exclude-from))'
bash: /etc/bash_completion.d/samba: line 108: syntax error near unexpected token `('
bash: /etc/bash_completion.d/samba: line 108: `        -@(o|f|-outputfile|-rcfile))'
bash: /etc/bash_completion.d/ssh: line 37: syntax error near unexpected token `('
bash: /etc/bash_completion.d/ssh: line 37: `        -@(F|i|S))'
bash: /etc/bash_completion.d/strace: line 12: syntax error near unexpected token `('
bash: /etc/bash_completion.d/strace: line 12: `            -@(o|e|p))'
bash: /etc/bash_completion.d/svk: line 29: syntax error near unexpected token `('
bash: /etc/bash_completion.d/svk: line 29: `            -@(F|-file|-targets))'
bash: /etc/bash_completion.d/tar: line 17: syntax error near unexpected token `('
bash: /etc/bash_completion.d/tar: line 17: `    ?(-)[cr]*f)'
bash: /etc/bash_completion.d/tcpdump: line 13: syntax error near unexpected token `('
bash: /etc/bash_completion.d/tcpdump: line 13: `        -@(r|w|F))'
bash: /etc/bash_completion.d/update-alternatives: line 29: syntax error near unexpected token `('
bash: /etc/bash_completion.d/update-alternatives: line 29: `    --@(altdir|admindir))'
bash: /etc/bash_completion.d/vpnc: line 21: syntax error near unexpected token `('
bash: /etc/bash_completion.d/vpnc: line 21: `        --@(pid-file|script))'
bash: [: =: unary operator expected
bash: /etc/bash_completion.d/wodim: line 17: syntax error near unexpected token `('
bash: /etc/bash_completion.d/wodim: line 17: `            @(text|cue)file)'
bash: /etc/bash_completion.d/xm: line 66: syntax error near unexpected token `('
bash: /etc/bash_completion.d/xm: line 66: `                @(block|network|vtpm|vnet)-list)'
bash: /etc/bash_completion.d/xz: line 27: syntax error near unexpected token `('
bash: /etc/bash_completion.d/xz: line 27: `        -@(!(-*)[dlt]*|-decompress|-list|-test))'

Setup upgrade

Should take 3 parameters (used in gitconfig):

  • [user] name
  • [user] email
  • [github] user

More alias'

alias ..="cd .."
alias ...="cd ../.."
alias b="cd -"

Problems with setup.sh

Getting this error...

www-data@kimegede:~/.dotfiles$ chmod +x setup.sh 

www-data@kimegede:~/.dotfiles$ sh setup.sh 
setup.sh: 7: [: README.md: unexpected operator
setup.sh: 8: [: README.md: unexpected operator
setup.sh: 9: [: README.md: unexpected operator
setup.sh: 10: [: README.md: unexpected operator
setup.sh: 11: [: README.md: unexpected operator
setup.sh: 12: [: README.md: unexpected operator
setup.sh: 7: [: bash_profile: unexpected operator
setup.sh: 8: [: bash_profile: unexpected operator
setup.sh: 9: [: bash_profile: unexpected operator
setup.sh: 10: [: bash_profile: unexpected operator
setup.sh: 11: [: bash_profile: unexpected operator
setup.sh: 12: [: bash_profile: unexpected operator
setup.sh: 7: [: bashrc: unexpected operator
setup.sh: 8: [: bashrc: unexpected operator
setup.sh: 9: [: bashrc: unexpected operator
setup.sh: 10: [: bashrc: unexpected operator
setup.sh: 11: [: bashrc: unexpected operator
setup.sh: 12: [: bashrc: unexpected operator
setup.sh: 7: [: gitconfig: unexpected operator
setup.sh: 8: [: gitconfig: unexpected operator
setup.sh: 9: [: gitconfig: unexpected operator
setup.sh: 10: [: gitconfig: unexpected operator
setup.sh: 11: [: gitconfig: unexpected operator
setup.sh: 12: [: gitconfig: unexpected operator
setup.sh: 7: [: inputrc: unexpected operator
setup.sh: 8: [: inputrc: unexpected operator
setup.sh: 9: [: inputrc: unexpected operator
setup.sh: 10: [: inputrc: unexpected operator
setup.sh: 11: [: inputrc: unexpected operator
setup.sh: 12: [: inputrc: unexpected operator
setup.sh: 7: [: screenrc: unexpected operator
setup.sh: 8: [: screenrc: unexpected operator
setup.sh: 9: [: screenrc: unexpected operator
setup.sh: 10: [: screenrc: unexpected operator
setup.sh: 11: [: screenrc: unexpected operator
setup.sh: 12: [: screenrc: unexpected operator
setup.sh: 7: [: setup.sh: unexpected operator
setup.sh: 8: [: setup.sh: unexpected operator
setup.sh: 9: [: setup.sh: unexpected operator
setup.sh: 10: [: setup.sh: unexpected operator
setup.sh: 11: [: setup.sh: unexpected operator
setup.sh: 12: [: setup.sh: unexpected operator
setup.sh: 7: [: sublime: unexpected operator
setup.sh: 8: [: sublime: unexpected operator
setup.sh: 9: [: sublime: unexpected operator
setup.sh: 10: [: sublime: unexpected operator
setup.sh: 11: [: sublime: unexpected operator
setup.sh: 12: [: sublime: unexpected operator
setup.sh: 7: [: vimrc: unexpected operator
setup.sh: 8: [: vimrc: unexpected operator
setup.sh: 9: [: vimrc: unexpected operator
setup.sh: 10: [: vimrc: unexpected operator
setup.sh: 11: [: vimrc: unexpected operator
setup.sh: 12: [: vimrc: unexpected operator

Setup update (Mac)

Should we think of, make the setup ask about different depencies should be installed on Mac (and Debian)?

  • bash-completion
  • git
  • git-extras
  • pwgen
  • htop
  • tig

git completion

Add git completion and set stuff like this, so you also get state of repo.

# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE="yes"
export GIT_PS1_SHOWSTASHSTATE="yes"
export GIT_PS1_SHOWUNTRACKEDFILES="yes"
export GIT_PS1_SHOWUPSTREAM="auto"

# Color prompt
if [[ $EUID == 0 ]] ; then
  export PS1='\[\e[1;31m\]\u \[\e[0m\]@ \[\e[1;33m\]\H \[\e[0m\][ \[\e[1;34m\]\w \[\e[0m\]]$(__git_ps1 " (%s)")\n\[\e[1m\]-> \[\e[0m\]'
else
  export PS1='\[\e[1;32m\]\u \[\e[0m\]@ \[\e[1;33m\]\H \[\e[0m\][ \[\e[1;34m\]\w \[\e[0m\]]$(__git_ps1 " (%s)")\n\[\e[1m\]-> \[\e[0m\]'
fi

Setup perms changed after install

ke @ local [ /home/ke/.dotfiles ] (master *=)
-> git st
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   setup.sh
#
no changes added to commit (use "git add" and/or "git commit -a")
ke @ local [ /home/ke/.dotfiles ] (master *=)
-> git df
diff --git a/setup.sh b/setup.sh
old mode 100644
new mode 100755

Ubuntu: intip not working

intip doesn't work on Ubuntu.

Ubuntu info:

-> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty

Error message:

-> intip
Usage: route [-nNvee] [-FC] [<AF>]           List kernel routing tables
       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.

       route {-h|--help} [<AF>]              Detailed usage syntax for specified AF.
       route {-V|--version}                  Display version/author and exit.

        -v, --verbose            be verbose
        -n, --numeric            don't resolve names
        -e, --extend             display other/more information
        -F, --fib                display Forwarding Information Base (default)
        -C, --cache              display routing cache instead of FIB

  <AF>=Use '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
    x25 (CCITT X.25)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.